When managing Exchange 2007, the recipient scope for Exchange Management Shell (EMS) and Exchange Management Console (EMC) defaults to the domain where the Exchange servers are located. Recipient scope refers to the specified portion of the Active Directory directory service hierarchy that the Exchange Management Console and the Exchange Management Shell uses for recipient management. When you set the recipient scope to a specific location within Active Directory, you can view and manage all recipients stored in that location and all of the containers under it. If your environment has multiple domains, then you may need to change the scope of recipients to find specific accounts.
Changing the recipient scope in the Exchange Management Console
Changing the recipient scope in the Exchange Management Shell
You must change the variable $AdminSessionADSettings.DefaultScope in EMS to change the scope. You can do this by running the following command:
$AdminSessionADSettings.DefaultScope = “<domain name>” (i.e. yourcompany.com)
You can also select a preferred Domain Controller using the following command:
$AdminSessionADSettings.PreferredDomainControllers = “<domain controller name>” (i.e. dc1.yourcompany.com)
You can set the scope to view entire domain with the following command:
$AdminSessionADSettings.ViewEntireForest = $True
NOTES:
Changing the recipient scope in the Exchange Management Shell changes the set of recipients that are returned for the Get- cmdlets of the recipient. The recipient scope is accessible by using the $AdminSessionADSettings variable.
Change Recipient Scope PermanentlyIf you are trying to change the recipient scope of Exchange Management Shell permanently you need to modify the Exchange.ps1 file located in ExchangeBin.Locate the line “$global:AdminSessionADSettings.ViewEntireForest = $false” and change it to “$global:AdminSessionADSettings.ViewEntireForest = $true”.
For More Info:http://technet.microsoft.com/en-us/library/bb124791.aspx