Easy and Useful PoweShell Commands used for Exchange Server 2010

Have you ever wondered how to make your life as a Network or Exchange Administrator a lot easier by using the PowerShell commands in your Exchange Server 2010? Some tasks can be daunting so I have compiled some easy to follow commands. I have actually been using all of these.

Note:  Mailbox Database, User, domain.com, usermail.com are just examples that I used and all fictitious, you may replace them with appropriate database name, domain, User and email.

Some common tasks that the Exchange Server 2010 System Manager was used for was exporting lists of mailbox users into CSV format for reporting in Excel, knowing the Statistics of Users Mailboxes and Whitelisting.

Export output of Mailbox Users in CSV format, and then open it up in Excel.

Get-MailboxDatabase “Mailbox Database” | Get-MailboxStatistics | Sort totalitemsize -desc | Export-CSV C:\mailboxes.csv

Statistics of all Users mailboxes in a particular database.

Get-MailboxDatabase “Mailbox Database” | Get-MailboxStatistics | Sort totalitemsize -desc | ft displayname, totalitemsize, itemcount

Statistics of a particular User

Get-MailboxStatistics User | ft DisplayName, TotalItemSize, ItemCount

Whitelisting Domain

Set-ContentFilterConfig -BypassedSenderDomains the domain.com

Whitelisting a Specific Email

Set-ContentFilterConfig -BypassedSenderDomains the useremail.com