Exchange 2010 PowerShell Cmdlets

A List of PowerShell Commands for Exchange 2010Exchange 2010 PowerShell Cmdlet List

There are two difficulties when you try to change settings via the built-in Exchange 2010 console.

Firstly there can be confusion from too many drilldowns before you reach the target menu.  Secondly, some settings are just not available in the GUI, thus you need to execute a PowerShell command.

Topics for Exchange 2010 PowerShell Commands

 ♠

Simple PowerShell Example – Exchange Server Roles

The purpose of this simple illustration is to list all the roles of an Exchange Server.  Observe the simplicity of PowerShell’s two-part instruction, the verb ‘Get’ coupled to the noun ‘ExchangeServer’.

# Example:  PowerShell Exchange 2010 Command
Get-ExchangeServer

Note 1:   You could append -status to the above command.

Another Simple PowerShell Command

#Exchange 2010 PowerShell Script
Get-Mailbox -Identity YourPerson

Note 2:   You can also try the format: domain\user instead of ‘YourPerson’.

Research PowerShell’s Exchange Cmdlets

Use PowerShell’s own Get-Command to list all cmdlets containing ‘Exchange’.

# PowerShell cmdlets containing Exchange
Get-Command *Exchange*

Note 3:   Actually, *Exchange* doesn’t unearth many cmdlets, thus you could substitute *Mail* or *Address* in the above example.

Discover Parameters for Your Exchange 2010 Command

Once you find a particular cmdlet that interests you, the next step is to see if it has any useful parameters.  Again use PowerShell’s own Get-Help cmdlet.

# Parameters for Exchange 2010 PowerShell Commands
Get-Help Get-ExchangeServer -full

Note 4:  I always append -full because I like to see Microsoft’s PowerShell examples.  Incidentally, this is how I knew there was a parameter called -status.

See more examples of using simple PowerShell commands for Exchange Server.

Guy Recommends:  A Free Trial of the Network Performance Monitor (NPM)Review of Orion NPM v11.5 v11.5

SolarWinds’ Network Performance Monitor will help you discover what’s happening on your network.  This utility will also guide you through troubleshooting; the dashboard will indicate whether the root cause is a broken link, faulty equipment or resource overload.

What I like best is the way NPM suggests solutions to network problems.  Its also has the ability to monitor the health of individual VMware virtual machines.  If you are interested in troubleshooting, and creating network maps, then I recommend that you try NPM now.

Download a free trial of SolarWinds’ Network Performance Monitor

PowerShell Exchange 2010 AddressList Cmdlets

I have included some of the many PowerShell Exchange 2010 cmdlets, here are the three most important nouns for investigating Exchange address lists.

  • AddressList
  • GlobalAddressList
  • AddressListPaging

Combine with these PowerShell verbs:  Get, Set, New and Remove, for example,

  • New-AddressList
  • Get-AddressListPaging
  • Set-GlobalAddressList

    ®

PowerShell Exchange Mailbox Cmdlets

  • StoreUsageStatistics
  • MailboxDatabase
  • StoreMailbox
  • Database
  • MailboxServer

As usual, always try the ‘Get’ verb, but if you know what you are doing then experiment with:  Mount, Dismount, Clean or even Remove.

Mailbox Policy Cmdlets

You can also use PowerShell cmdlets to modify the various email policies, the key nouns are:  InboxRule and EmailAddressPolicy.

Monitoring Exchange 2010 High Availability

Here are PowerShell commands for clustered configurations.

Get-MailboxDatabaseCopyStatus

This PowerShell command displays the status of all your databases on all your Exchange mailbox servers.

Get-MailboxDatabaseCopyStatus -server Exchsrv

Check to see that the database is mounted and healthy.

Get-MailboxDatabaseCopyStatus -identity DB1\Exchsrv

Note 5:  The -identity parameter is frequently used in conjunction with Exchange cmdlets.

Guy Recommends: Free WMI Monitor for PowerShellSolarwinds Free WMI Monitor for PowerShell

Windows Management Instrumentation (WMI) is one of the hidden treasures of Microsoft’s operating systems.  Fortunately, SolarWinds have created a Free WMI Monitor so that you can discover these gems of performance information, and thus improve your PowerShell scripts.

Take the guess work out of which WMI counters to use when scripting the operating system, Active Directory, or Exchange Server. Give this WMI monitor a try – it’s free.

Download your free copy of WMI Monitor

Test-ReplicationHealth

Here is a PowerShell Cmdlet which checks that mailboxes in a cluster are replicating correctly.

Test-ReplicationHealth Exchsrv

Digression:  Other PowerShell Commands for Exchange 2010 Containing ‘Test’

Do you remember how to research for more cmdlets with Get-Command?  Well try:

Get-Command -verb Test

# Test-MailFlow
# Test-OutlookWebServices
# Test-ServiceHealth
# Test-SystemHealth

See more on PowerShell Cmdlets for Exchange 2010.

 

DSN Messages with New-SystemMessage

New-SystemMessage -DSNCode 5.1.2 -Text "The mailbox you tried to send an e-mail message to is no longer accepting messages. Please contact your Exchange Supremo."

See more on Exchange 2010 NDRs

List of PowerShell Cmdlets for Exchange 2010

How to enumerate PowerShell cmdlets for Exchange:

Clear-Host
Get-Help * | Select-Object Name, pssnapin | `
Where {$_.pssnapin -Match "Exchange"} | `
Sort-Object Name | Format-Table Name

Note 1:  You need to have installed Exchange Server 2010 to obtain this list.

Note 2:  Substitute -Like "*exch*" for -Match "Exchange".

List of PowerShell Exchange 2010 Cmdlets

Add-ADPermission
Add-AvailabilityAddressSpace
Add-ContentFilterPhrase
Add-DatabaseAvailabilityGroupServer
Add-DistributionGroupMember
Add-ExchangeAdministrator
Add-FederatedDomain
Add-IPAllowListEntry
Add-IPAllowListProvider
Add-IPBlockListEntry
Add-IPBlockListProvider
Add-MailboxDatabaseCopy
Add-MailboxFolderPermission
Add-MailboxPermission
Add-ManagementRoleEntry
Add-PublicFolderAdministrativePermission
Add-PublicFolderClientPermission
Add-SecondaryDomain
Add-SignupAddress
Add-SupervisionListEntry
Clean-MailboxDatabase
Clear-ActiveSyncDevice
Clear-TextMessagingAccount
Complete-MoveRequest
Complete-OrganizationUpgrade
Connect-Mailbox

®

Copy-UMCustomPrompt
Disable-AddressListPaging
Disable-AntispamUpdates
Disable-CmdletExtensionAgent
Disable-DistributionGroup
Disable-InboxRule
Disable-JournalRule
Disable-Mailbox
Disable-MailContact
Disable-MailPublicFolder
Disable-MailUser
Disable-OutlookAnywhere
Disable-OutlookProtectionRule
Disable-ServiceEmailChannel
Disable-TransportAgent
Disable-TransportRule
Disable-UMAutoAttendant
Disable-UMIPGateway
Disable-UMMailbox
Disable-UMServer
Dismount-Database
Enable-AddressListPaging
Enable-AntispamUpdates
Enable-CmdletExtensionAgent
Enable-DistributionGroup
Enable-ExchangeCertificate
Enable-InboxRule
Enable-JournalRule
Enable-LiveId
Enable-Mailbox
Enable-MailContact
Enable-MailPublicFolder
Enable-MailUser
Enable-OutlookAnywhere
Enable-OutlookProtectionRule
Enable-ServiceEmailChannel
Enable-TransportAgent
Enable-TransportRule
Enable-UMAutoAttendant
Enable-UMIPGateway
Enable-UMMailbox
Enable-UMServer
Export-ActiveSyncLog
Export-AutoDiscoverConfig
Export-ExchangeCertificate
Export-Mailbox
Export-Message
Export-RecipientDataProperty
Export-TransportRuleCollection
Get-AcceptedDomain
Get-ActiveSyncDevice
Get-ActiveSyncDeviceStatistics
Get-ActiveSyncMailboxPolicy
Get-ActiveSyncVirtualDirectory
Get-AddressList
Get-AdminAuditLogConfig
Get-ADPermission
Get-AdServerSettings
Get-AdSite
Get-AdSiteLink
Get-AgentLog
Get-AlternateMailbox
Get-AntispamUpdates
Get-AutodiscoverVirtualDirectory
Get-AvailabilityAddressSpace
Get-AvailabilityConfig
Get-CalendarDiagnosticLog
Get-CalendarNotification
Get-CalendarProcessing
Get-CASMailbox
Get-CASMailboxPlan
Get-ClientAccessArray
Get-ClientAccessServer
Get-CmdletExtensionAgent
Get-Contact
Get-ContentFilterConfig
Get-ContentFilterPhrase
Get-ControlPointConfiguration
Get-DatabaseAvailabilityGroup
Get-DatabaseAvailabilityGroupNetwork
Get-DeliveryAgentConnector
Get-DetailsTemplate
Get-DistributionGroup
Get-DistributionGroupMember
Get-DomainController
Get-DynamicDistributionGroup
Get-EcpVirtualDirectory
Get-EdgeSubscription
Get-EdgeSyncMservConnector
Get-EdgeSyncServiceConfig
Get-EmailAddressPolicy
Get-EventLogLevel
Get-ExchangeAdministrator
Get-ExchangeAssistanceConfig
Get-ExchangeCertificate
Get-ExchangeServer
Get-ExchangeSubscription
Get-FailedContentIndexDocuments
Get-FederatedOrganizationIdentifier
Get-FederationInformation
Get-FederationTrust
Get-ForeignConnector
Get-GlobalAddressList
Get-Group
Get-HotmailSubscription
Get-IMAPSettings
Get-ImapSubscription
Get-InboxRule
Get-IPAllowListConfig
Get-IPAllowListEntry
Get-IPAllowListProvider
Get-IPAllowListProvidersConfig
Get-IPBlockListConfig
Get-IPBlockListEntry
Get-IPBlockListProvider
Get-IPBlockListProvidersConfig
Get-JournalingReconciliationAccount
Get-JournalRule
Get-LinkedUser
Get-LogonStatistics
Get-Mailbox
Get-MailboxCalendarConfiguration
Get-MailboxCalendarFolder
Get-MailboxComplianceConfiguration
Get-MailboxDatabase
Get-MailboxDatabaseCopyStatus
Get-MailboxFolder
Get-MailboxFolderPermission
Get-MailboxFolderStatistics
Get-MailboxPermission
Get-MailboxPlan
Get-MailboxRegionalConfiguration
Get-MailboxSearch
Get-MailboxServer
Get-MailboxSpellingConfiguration
Get-MailboxStatistics
Get-MailContact
Get-MailPublicFolder
Get-MailUser
Get-ManagedContentSettings
Get-ManagedFolder
Get-ManagedFolderMailboxPolicy
Get-ManagementEndpoint
Get-ManagementRole
Get-ManagementRoleAssignment
Get-ManagementRoleEntry
Get-ManagementScope
Get-Message
Get-MessageClassification
Get-MessageLatencyReport
Get-MessageStatisticsReport
Get-MessageTrackingLog
Get-MessageTrackingReport
Get-MoveRequest
Get-NetworkConnectionInfo
Get-OABVirtualDirectory
Get-OfflineAddressBook
Get-Organization
Get-OrganizationalUnit
Get-OrganizationConfig
Get-OutlookAnywhere
Get-OutlookProtectionRule
Get-OutlookProvider
Get-OwaMailboxPolicy
Get-OwaVirtualDirectory
Get-PhysicalAvailabilityReport
Get-POPSettings
Get-PopSubscription
Get-PowerShellVirtualDirectory
Get-ProvisioningPolicy
Get-PublicFolder
Get-PublicFolderAdministrativePermis…
Get-PublicFolderClientPermission
Get-PublicFolderDatabase
Get-PublicFolderStatistics
Get-Queue
Get-ReceiveConnector
Get-Recipient
Get-RecipientEnforcementProvisioning…
Get-RecipientFilterConfig
Get-RecipientTemplateProvisioningPolicy
Get-RemoteAccountPolicy
Get-RemoteAccountSyncCache
Get-RemoteDomain
Get-ResourceConfig
Get-RetentionPolicy
Get-RetentionPolicyTag
Get-RMSTemplate
Get-RoutingGroupConnector
Get-RpcClientAccess
Get-SecurityPrincipal
Get-SendConnector
Get-SenderFilterConfig
Get-SenderIdConfig
Get-SenderReputationConfig
Get-ServiceAvailabilityReport
Get-ServiceStatus
Get-SharingPolicy
Get-SharingRelationship
Get-SignupAddress
Get-Subscription
Get-SupervisionListEntry
Get-SupervisionPolicy
Get-SyncDeletedRecipient
Get-SyncDistributionGroup
Get-SyncDynamicDistributionGroup
Get-SyncMailbox
Get-SyncMailContact
Get-SyncMailUser
Get-SystemMessage
Get-TextMessagingAccount
Get-ThrottlingPolicy
Get-TrackedMessageDeliveryStatus
Get-TrackedMessageSent
Get-TransportAgent
Get-TransportConfig
Get-TransportPipeline
Get-TransportRule
Get-TransportRuleAction
Get-TransportRulePredicate
Get-TransportServer
Get-Trust
Get-UMActiveCalls
Get-UMAutoAttendant
Get-UMDialplan
Get-UMHuntGroup
Get-UMIPGateway
Get-UMMailbox
Get-UMMailboxPIN
Get-UMMailboxPlan
Get-UMMailboxPolicy
Get-UMServer
Get-User
Get-UserPrincipalNamesSuffix
Get-WebServicesVirtualDirectory
Get-X400AuthoritativeDomain
Import-ExchangeCertificate
Import-Mailbox
Import-RecipientDataProperty
Import-TransportRuleCollection
Install-TransportAgent
Invoke-PostMoveAction
Mount-Database
Move-ActiveMailboxDatabase
Move-AddressList
Move-DatabasePath
Move-Mailbox
Move-OfflineAddressBook
New-AcceptedDomain
New-ActiveSyncMailboxPolicy
New-ActiveSyncVirtualDirectory
New-AddressList
New-AlternateMailbox
New-AutodiscoverVirtualDirectory
New-ClientAccessArray
New-DatabaseAvailabilityGroup
New-DatabaseAvailabilityGroupNetwork
New-DeliveryAgentConnector
New-DistributionGroup
New-DynamicDistributionGroup
New-EcpVirtualDirectory
New-EdgeSubscription
New-EdgeSyncMservConnector
New-EdgeSyncServiceConfig
New-EmailAddressPolicy
New-ExchangeCertificate
New-ExchangeSubscription
New-FederationTrust
New-ForeignConnector
New-GlobalAddressList
New-HotmailSubscription
New-ImapSubscription
New-InboxRule
New-JournalingReconciliationAccount
New-JournalRule
New-LinkedUser
New-LiveContactSubscription
New-Mailbox
New-MailboxDatabase
New-MailboxFolder
New-MailboxSearch
New-MailContact
New-MailUser
New-ManagedContentSettings
New-ManagedFolder
New-ManagedFolderMailboxPolicy
New-ManagementRole
New-ManagementRoleAssignment
New-ManagementScope
New-MessageClassification
New-MoveRequest
New-OABVirtualDirectory
New-OfflineAddressBook
New-Organization
New-OutlookProtectionRule
New-OutlookProvider
New-OwaMailboxPolicy
New-OwaVirtualDirectory
New-PopSubscription
New-PowerShellVirtualDirectory
New-PublicFolder
New-PublicFolderDatabase
New-ReceiveConnector
New-RecipientEnforcementProvisioning…
New-RecipientTemplateProvisioningPolicy
New-RemoteAccountPolicy
New-RemoteDomain
New-RetentionPolicy
New-RetentionPolicyTag
New-RoutingGroupConnector
New-RpcClientAccess
New-SendConnector
New-SharingPolicy
New-SharingRelationship
New-Subscription
New-SyncMailbox
New-SyncMailContact
New-SyncMailUser
New-SystemMessage
New-ThrottlingPolicy
New-TransportRule
New-UMAutoAttendant
New-UMDialplan
New-UMHuntGroup
New-UMIPGateway
New-UMMailboxPolicy
New-WebServicesVirtualDirectory
New-X400AuthoritativeDomain
Remove-AcceptedDomain
Remove-ActiveSyncDevice
Remove-ActiveSyncMailboxPolicy
Remove-ActiveSyncVirtualDirectory
Remove-AddressList
Remove-ADPermission
Remove-AlternateMailbox
Remove-AutodiscoverVirtualDirectory
Remove-AvailabilityAddressSpace
Remove-ClientAccessArray
Remove-ContentFilterPhrase
Remove-DatabaseAvailabilityGroup
Remove-DatabaseAvailabilityGroupNetwork
Remove-DatabaseAvailabilityGroupServer
Remove-DeliveryAgentConnector
Remove-DistributionGroup
Remove-DistributionGroupMember
Remove-DynamicDistributionGroup
Remove-EcpVirtualDirectory
Remove-EdgeSubscription
Remove-EdgeSyncMservConnector
Remove-EmailAddressPolicy
Remove-ExchangeAdministrator
Remove-ExchangeCertificate
Remove-FederatedDomain
Remove-FederationTrust
Remove-ForeignConnector
Remove-GlobalAddressList
Remove-InboxRule
Remove-IPAllowListEntry
Remove-IPAllowListProvider
Remove-IPBlockListEntry
Remove-IPBlockListProvider
Remove-JournalingReconciliationAccount
Remove-JournalRule
Remove-LinkedUser
Remove-Mailbox
Remove-MailboxDatabase
Remove-MailboxDatabaseCopy
Remove-MailboxFolderPermission
Remove-MailboxPermission
Remove-MailboxSearch
Remove-MailContact
Remove-MailUser
Remove-ManagedContentSettings
Remove-ManagedFolder
Remove-ManagedFolderMailboxPolicy
Remove-ManagementRole
Remove-ManagementRoleAssignment
Remove-ManagementRoleEntry
Remove-ManagementScope
Remove-Message
Remove-MessageClassification
Remove-MoveRequest
Remove-OABVirtualDirectory
Remove-OfflineAddressBook
Remove-Organization
Remove-OutlookProtectionRule
Remove-OutlookProvider
Remove-OwaMailboxPolicy
Remove-OwaVirtualDirectory
Remove-PowerShellVirtualDirectory
Remove-PublicFolder
Remove-PublicFolderAdministrativePer…
Remove-PublicFolderClientPermission
Remove-PublicFolderDatabase
Remove-ReceiveConnector
Remove-RecipientEnforcementProvision…
Remove-RecipientTemplateProvisioning…
Remove-RemoteAccountPolicy
Remove-RemoteAccountSyncCache
Remove-RemoteDomain
Remove-RetentionPolicy
Remove-RetentionPolicyTag
Remove-RoutingGroupConnector
Remove-RpcClientAccess
Remove-SecondaryDomain
Remove-SendConnector
Remove-SharingPolicy
Remove-SharingRelationship
Remove-SignupAddress
Remove-Subscription
Remove-SupervisionListEntry
Remove-SyncMailbox
Remove-SyncMailContact
Remove-SyncMailUser
Remove-SystemMessage
Remove-ThrottlingPolicy
Remove-TransportRule
Remove-UMAutoAttendant
Remove-UMDialplan
Remove-UMHuntGroup
Remove-UMIPGateway
Remove-UMMailboxPolicy
Remove-WebServicesVirtualDirectory
Remove-X400AuthoritativeDomain
Restore-DatabaseAvailabilityGroup
Restore-DetailsTemplate
Restore-Mailbox
Resume-MailboxDatabaseCopy
Resume-Message
Resume-PublicFolderReplication
Resume-Queue
Retry-Queue
Search-Mailbox
Search-MessageTrackingReport
Send-TextMessagingVerificationCode
Set-AcceptedDomain
Set-ActiveSyncMailboxPolicy
Set-ActiveSyncVirtualDirectory
Set-AddressList
Set-AdminAuditLogConfig
Set-AdServerSettings
Set-AdSite
Set-AdSiteLink
Set-AlternateMailbox
Set-AutodiscoverVirtualDirectory
Set-AvailabilityConfig
Set-CalendarNotification
Set-CalendarProcessing
Set-CASMailbox
Set-ClientAccessArray
Set-ClientAccessServer
Set-CmdletExtensionAgent
Set-Contact
Set-ContentFilterConfig
Set-ControlPointConfiguration
Set-DatabaseAvailabilityGroup
Set-DatabaseAvailabilityGroupNetwork
Set-DeliveryAgentConnector
Set-DetailsTemplate
Set-DistributionGroup
Set-DynamicDistributionGroup
Set-EcpVirtualDirectory
Set-EdgeSyncMservConnector
Set-EdgeSyncServiceConfig
Set-EmailAddressPolicy
Set-EventLogLevel
Set-ExchangeAssistanceConfig
Set-ExchangeServer
Set-ExchangeSubscription
Set-FederatedOrganizationIdentifier
Set-FederationTrust
Set-ForeignConnector
Set-GlobalAddressList
Set-Group
Set-HotmailSubscription
Set-IMAPSettings
Set-ImapSubscription
Set-InboxRule
Set-IPAllowListConfig
Set-IPAllowListProvider
Set-IPAllowListProvidersConfig
Set-IPBlockListConfig
Set-IPBlockListProvider
Set-IPBlockListProvidersConfig
Set-JournalingReconciliationAccount
Set-JournalRule
Set-LinkedUser

®

Set-LiveContactSubscription
Set-Mailbox
Set-MailboxCalendarConfiguration
Set-MailboxCalendarFolder
Set-MailboxComplianceConfiguration
Set-MailboxDatabase
Set-MailboxDatabaseCopy
Set-MailboxPlan
Set-MailboxRegionalConfiguration
Set-MailboxSearch
Set-MailboxServer
Set-MailboxSpellingConfiguration
Set-MailContact
Set-MailPublicFolder
Set-MailUser
Set-ManagedContentSettings
Set-ManagedFolder
Set-ManagedFolderMailboxPolicy
Set-ManagementRoleAssignment
Set-ManagementRoleEntry
Set-ManagementScope
Set-MessageClassification
Set-OABVirtualDirectory
Set-OfflineAddressBook
Set-OrganizationConfig
Set-OutlookAnywhere
Set-OutlookProtectionRule
Set-OutlookProvider
Set-OwaMailboxPolicy
Set-OwaVirtualDirectory
Set-POPSettings
Set-PopSubscription
Set-PowerShellVirtualDirectory
Set-PublicFolder
Set-PublicFolderDatabase
Set-ReceiveConnector
Set-RecipientEnforcementProvisioning…
Set-RecipientFilterConfig
Set-RecipientTemplateProvisioningPolicy
Set-RemoteAccountPolicy
Set-RemoteAccountSyncCache
Set-RemoteDomain
Set-ResourceConfig
Set-RetentionPolicy
Set-RetentionPolicyTag
Set-RoutingGroupConnector
Set-RpcClientAccess
Set-SendConnector
Set-SenderFilterConfig
Set-SenderIdConfig
Set-SenderReputationConfig
Set-SharingPolicy
Set-SharingRelationship
Set-SignupAddress
Set-SupervisionPolicy
Set-SyncMailbox
Set-SyncMailContact
Set-SyncMailUser
Set-SystemMessage
Set-TextMessagingAccount
Set-ThrottlingPolicy
Set-TransportAgent
Set-TransportConfig
Set-TransportRule
Set-TransportServer
Set-UMAutoAttendant
Set-UMDialplan
Set-UMIPGateway
Set-UMMailbox
Set-UMMailboxPIN
Set-UMMailboxPolicy
Set-UMServer
Set-User
Set-WebServicesVirtualDirectory
Set-X400AuthoritativeDomain
Start-DatabaseAvailabilityGroup
Start-EdgeSynchronization
Start-MailboxSearch
Start-ManagedFolderAssistant
Start-OrganizationUpgrade
Start-RetentionAutoTagLearning
Stop-DatabaseAvailabilityGroup
Stop-MailboxSearch
Stop-ManagedFolderAssistant
Suspend-MailboxDatabaseCopy
Suspend-Message
Suspend-PublicFolderReplication
Suspend-Queue
Test-ActiveSyncConnectivity
Test-EcpConnectivity
Test-EdgeSynchronization
Test-EdgeSyncMserv
Test-ExchangeSearch
Test-FederationTrustCertificate
Test-ImapConnectivity
Test-IPAllowListProvider
Test-IPBlockListProvider
Test-Mailflow
Test-MapiConnectivity
Test-Message
Test-OutlookWebServices
Test-OwaConnectivity
Test-PopConnectivity
Test-PowerShellConnectivity
Test-ReplicationHealth
Test-SenderId
Test-ServiceHealth
Test-SystemHealth
Test-UMConnectivity
Test-WebServicesConnectivity
Uninstall-TransportAgent
Update-AddressList
Update-DistributionGroupMember
Update-EmailAddressPolicy
Update-FileDistributionService
Update-GlobalAddressList
Update-MailboxDatabaseCopy
Update-OfflineAddressBook
Update-PublicFolder
Update-PublicFolderHierarchy
Update-Recipient
Update-SafeList
Update-ServicePlan
Update-SyncStatistics
Verify-TextMessagingVerificationCode

Guy Recommends: WMI Monitor and It’s Free!Solarwinds Free WMI Monitor

Windows Management Instrumentation (WMI) is one of the hidden treasures of Microsoft’s operating systems.  Fortunately, SolarWinds have created a Free WMI Monitor so that you can discover these gems of performance information, and thus improve your scripts.

Take the guess work out of which WMI counters to use when scripting the operating system, Active Directory or Exchange Server. Give this WMI monitor a try – it’s free.

Download your free copy of WMI Monitor

PowerShell Assumptions

Because I cover PowerShell basics elsewhere, I am assuming that you have a working knowledge of the cmdlets and how to research parameters with Get-Member.  Incidentally, I use PowerShell 2.0s graphical ISE, rather than the command line version.

PowerShell Pre-requisites and Checklist

In the case of Windows 7 and later, you don’t need to download any extra files, just: ‘Add Feature’ –> Windows PowerShell.  However, for older operating systems, there are different versions of PowerShell for XP, Windows Server 2003 and Vista.  For such legacy systems only, you need to download PowerShell from Microsoft’s site.

Once you have installed PowerShell 2.0 or later, I recommend choosing the ISE (Integrated Scripting Engine) version, it will save buying a text editor.

Summary of PowerShell Exchange 2010 Cmdlets

It can be frustrating to configure certain settings using the Exchange 2010 console.  Choosing from a list of PowerShell commands helps to reduce the long drill-downs and to find settings not available in the Exchange Manger GUI.  Perhaps the best reason of all is that wanting to configure Exchange effieciently will be the spring-board to learning more about PowerShell. 

If you like this page then please share it with your friends

 


See more PowerShell examples for syntax constructions

PowerShell Tutorials   • Syntax   • Pipeline   • Quotes   • Remove-Item   • ItemProperty

Select-String  • -replace string   • Group-Object   • Sort-Object   • PowerShell Splatting

Windows PowerShell cmdlets   • Windows PowerShell  • New-Item  • PowerShell New Object

Please email me if you have a better example script. Also please report any factual mistakes, grammatical errors or broken links, I will be happy to correct the fault.