Home » Exchange Server 2010 » PowerShell Exchange 2010 & 2013 Cmdlets

Translate:

Archives

PowerShell Exchange 2010 & 2013 Cmdlets

 

PowerShell Exchange 2010 & 2013 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

 

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

 

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

 

PowerShell Exchange Mailbox Cmdlets

 

  • StoreUsageStatistics
  • MailboxDatabase
  • StoreMailbox
  • Database
  • MailboxServer

 

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 DB1Exchsrv

 

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

 

Test-ReplicationHealth

 

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

Test-ReplicationHealth Exchsrv

 

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.”

 

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-PublicFolderAdministrativePermissio

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

 

Praveen

MCTS | Exchange Server


Leave a comment

Translate »