Write Powershell Output to File (Full Version)

All Forums >> [Microsoft Exchange 2007] >> General



Message


rparsons1000 -> Write Powershell Output to File (21.Oct.2007 9:41:06 PM)

How do you write the output of a power shell command like "get-mailbox" to a file????




ismail.mohammed -> RE: Write Powershell Output to File (21.Oct.2007 11:17:18 PM)

Hi,
Get-Mailbox will give status about how many mailbox we have in the organization. to display it we will run get-mailbox and will give the outpout of the mailboxes...
if you want to know the number of mailbox for specific servers you can run this command
get-mailbox -server "servername"
get-mailbox -database "mailbox database"
get-mailbox -server "e2k3"
for 2k3 mailbox store it won't work.
For exporting the output into a file you need to run the export-csv command...
eg:
get-mailbox -database "mailbox database" | export-csv c:\export.csv




Page: [1]