Professional Documents
Culture Documents
In Exchange 2013 alone, there are 187 new PowerShell cmdlets. If you plan on deploying Exchange
2013 in the near future, there are 10 you should pay attention to.
1. Get-ExchangeServerAccessLicense
2. Get-HealthReport
The Get-HealthReport cmdlet reports the health of various Exchange Server 2013
components. For example, you can use the GetHealthReport to determine Outlook Web
App's health by entering the following command:
The cmdlet returns health information by reporting the object's state, whether online,
partially online, functional, unavailable or otherwise.
3. Redirect-Message
Message queues reside on mailbox servers in Exchange Server 2013. If a problem occurs
with a mailbox server, the Redirect-Message cmdlet can remove the messages from the
mailbox server's queue and add them to a queue on a healthy mailbox server.
All you have to do is specify the source and destination server names with the following
syntax:
4. Test-MigrationServerAvailability
Users have become increasingly mobile. Admins can use the Get-MobileDevice cmdlet to
view a list of all of the mobile devices that have been associated with a given mailbox. For
example, to see a list of the mobile devices that are linked to a mailbox named B rie n , use
the following command:
6. Get-MobileDeviceStatistics
At its simplest, the cmdlet requires you to provide the identity of the mailbox that you want
to analyze. For example, if you wanted to see mobile device statistics for a mailbox named B
rie n , you would use the following command:
7. Get-PartnerApplication
Exchange Server 2013 introduces the concept of partner applications. A partner application
is designed to work with Exchange to augment the overall end-user experience. SharePoint
2013 is probably the best example of a partner application.
8. Get-ServerHealth
9. Set-ServerMonitor
Exchange 2013 offers various components that may be used to monitor Exchange. The Set-
ServerMonitor cmdlet lets you enable individual server monitors by specifying the name of
the monitor and the name of the server.
For example, if you wanted to enable the Maintenance monitor for a server named E X 1 ,
you'd use the following command:
10. New-PublicFolderMigrationRequest
Microsoft has once again embraced public folders in Exchange 2013. In fact, public folders
can now be protected by a database availability group (DAG), in much the same way that
mailboxes are. Because of this and other new public folder-related features, Microsoft
recommends that public folders be migrated to Exchange 2013 mailbox servers.
A public-folder migration is a multistep process, but the primary cmdlet you should
familiarize yourself with is the NewPublicFolderMigrationRequest cmdlet. This cmdlet
requires you to specify the source database and a .csv file containing exported public folder
statistics (the .csv file is created by running the Export-PublicFolderStatistics.ps1 script).
Here's an example of how the command might be used: