Monday, August 29, 2011

How to specify PowerShell session scope

As well as Exchange Management Console, Exchange Shell Console allows you to define the operations scope. You can choose for viewing and working either on the entire forest or on a single domain.

Exchange 2007
$AdminSessionADSettings.DefaultScope="domain1.contoso.com"
$AdminSessionADSettings.ViewEntireForest=$true


Exchange 2010
Set-AdServerSettings -RecipientViewRoot "domain2.contoso.com"
Set-AdServerSettings -ViewEntireForest $true

* when set to the entire forest, all settings changed will take longer than usual to replicate

No comments:

Post a Comment

Related Posts Plugin for WordPress, Blogger...