How to Modify Recipient Scope in the Exchange Management Shell

In multi-Domain Forests you may encounter a situation where the Exchange Management Shell is not displaying the results you are expecting for some Get- queries.  The reason for this is what is known as the Recipient Scope.

[PS] C:\Admin>Get-Mailbox

Name           Alias          ServerName  ProhibitSendQuota
----           -----          ----------  ---------------
Administrator  Administrator  exchserv    unlimited

The Recipient Scope is the portion of Active Directory that the Exchange Management Shell or Console will use when managing recipients.  For example, you may set the scope to a single Domain, OU, or to the entire Forest.

You can view the current Recipient Scope in the Exchange Management Shell.

[PS] C:\Admin>$AdminSessionADSettings

ViewEntireForest              : False
DefaultScope                  : resource.contoso.com
PreferredGlobalCatalog        :
ConfigurationDomainController : dc1.resource.contoso.com
PreferredDomainControllers    : {}

You can also modify the scope.  For example, to modify the scope to the entire Forest you would issue this shell command.

[PS] C:\Admin>$AdminSessionADSettings.ViewEntireForest = $true
[PS] C:\Admin>$AdminSessionADSettings

ViewEntireForest              : True
DefaultScope                  :
PreferredGlobalCatalog        :
ConfigurationDomainController : dc1.resource.contoso.com
PreferredDomainControllers    : {}

Notice now that the entire Forest is enabled and the scope is not limited to a single domain. Get- cmdlets for recipient management will now return all recipients in the multi-Domain Forest.

About Paul Cunningham

Paul is a Microsoft Exchange Server specialist for one of Australia's largest companies, and is the Publisher of ExchangeServerPro.com. He is also an MCP, MCSA, MCSE, MCTS, and an MCITP for Exchange Server 2007/2010. Connect with Paul on Twitter, LinkedIn and Google+.

Comments

  1. Marty van Doorninck says:

    Paul – when I run the $AdminSessionADSettings in the EMS I don’t get the nice output you show here… displays no results. Any idea what I’m doing wrong? Thanks!

Leave a Comment

*