Exchange Management Shell Exchange-Server-Specific Commands

By John Paul Mueller

Part of Microsoft Exchange Server 2007 For Dummies Cheat Sheet

The Microsoft Exchange Server 2007 shell commands in the following table will be quite useful when you’re initially setting up your Exchange Server and when your company or department organization changes. Keep this list handy to make you job go more quickly and smoothly.

Command Description
Get-ExchangeServer Obtains the attributes of a specified server. The cmdlet
obtains the attributes of all the servers in the Exchange
organization when you don’t provide a specific server name.
Set-ExchangeServer Sets generic Exchange attributes in Active Directory for a
specified computer. This cmdlet works only with Exchange Server
2007. You can use this task on only one server at a time. Use
scripts to perform bulk management tasks.
Enable-ExchangeCertificate Enables or disables a certificate contained in a local
certificate store. Certificates provide the means for secure e-mail
communication between client and server.
Export-ExchangeCertificate Creates an external file containing the Exchange Server
certificate. You can use this cmdlet to create a copy of the
certificate for later restoration.
Import-ExchangeCertificate Places a digital certificate contained in an external file in
the local security store. The server can then use the certificate
to secure e-mail communication.
Get-ExchangeCertificate Displays a list of Exchange Server certificates in the local
security store.
New-ExchangeCertificate Creates a new self-signed certificate you can use for test
servers. This cmdlet also makes it possible to create a certificate
request for Transport Layer Security (TLS) and Secure Sockets Layer
(SSL) services.
Remove-ExchangeCertificate Deletes any Exchange Server certificate in the local security
store. This option doesn’t provide any form of undo, so make sure
you export the certificate using Export-ExchangeCertificate before
you use this cmdlet.
Test-ExchangeSearch Tells you whether Exchange Server search is enabled and
currently indexing the content of the mailbox databases.
Add-ExchangeAdministrator Adds an Exchange Server user or group to a particular
Remove-ExchangeAdministrator Removes an Exchange Server user or group from a particular
Get-ExchangeAdministrator Displays a list of Exchange Server users and groups, their
scope, and their role assignments. For example, the Administrator
user is in the OrgAdmin role and has an organization wide