Exchange Server Forums

Forums | Register | Login | My Profile | Inbox | RSS RSS icon | My Subscription | My Forums | Address Book | Member List | Search | FAQ | Ticket List | Log Out

Write Powershell Output to File

Users viewing this topic: none

Logged in as: Guest
  Printable Version
All Forums >> [Microsoft Exchange 2007] >> General >> Write Powershell Output to File Page: [1]
Login
Message << Older Topic   Newer Topic >>
Limited time MSExchange.org offer! -- 1.Sep.2008 1:00:00 PM
TechGenix and SolarWinds have partnered to provide free copies of SolarWinds Exchange Monitor to all visitors who join the MSExchange.org Forums. SolarWinds Exchange Monitor is a handy desktop dashboard that continuously monitors Microsoft Exchange to deliver real-time insight into Exchange services, mail queue sizes, and host server health. Learn more about Exchange Monitor and the free offer!
Write Powershell Output to File - 21.Oct.2007 9:41:06 PM   
rparsons1000

 

Posts: 143
Joined: 29.Aug.2006
Status: offline
How do you write the output of a power shell command like "get-mailbox" to a file????
Post #: 1
RE: Write Powershell Output to File - 21.Oct.2007 11:17:18 PM   
ismail.mohammed

 

Posts: 2333
Joined: 9.May2007
From: India
Status: offline
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

(in reply to rparsons1000)
Post #: 2

Page:   [1] << Older Topic    Newer Topic >>
All Forums >> [Microsoft Exchange 2007] >> General >> Write Powershell Output to File Page: [1]
Jump to:

New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts