Click to Rate and Give Feedback
TechNet
TechNet Library
Collapse All/Expand All Collapse All
More Resources
Related Help Topics
Loading...
No resources found.
more...
Related Blog Articles
Loading...
more...
Related Forum Discussions
This page is specific to
Exchange 2010
Set-AdServerSettings

Applies to: Exchange Server 2010

Topic Last Modified: 2011-03-19

Use the Set-AdServerSettings cmdlet to manage the Active Directory Domain Services (AD DS) environment in the current Exchange Management Shell session. The Set-AdServerSettings cmdlet replaces the AdminSessionADSettings session variable that was used in Microsoft Exchange Server 2007.


Set-AdServerSettings [-ConfigurationDomainController <Fqdn>] [-Confirm [<SwitchParameter>]] [-PreferredGlobalCatalog <Fqdn>] [-RecipientViewRoot <String>] [-SetPreferredDomainControllers <MultiValuedProperty>] [-ViewEntireForest <$true | $false>] [-WhatIf [<SwitchParameter>]]

Set-AdServerSettings -PreferredServer <Fqdn> [-Confirm [<SwitchParameter>]] [-RecipientViewRoot <String>] [-ViewEntireForest <$true | $false>] [-WhatIf [<SwitchParameter>]]

Set-AdServerSettings -RunspaceServerSettings <RunspaceServerSettingsPresentationObject> [-Confirm [<SwitchParameter>]] [-WhatIf [<SwitchParameter>]]

Parameter Required Type Description

PreferredServer

Required

Microsoft.Exchange.Data.Fqdn

The PreferredServer parameter specifies the fully qualified domain name (FQDN) of the domain controller to be used for this session.

RunspaceServerSettings

Required

Microsoft.Exchange.Data.Directory.Management.RunspaceServerSettingsPresentationObject

The RunspaceServerSettings parameter enables you to pass an entire configuration object to the command to be processed. This parameter is useful in scripts where an entire object must be passed to the command.

ConfigurationDomainController

Optional

Microsoft.Exchange.Data.Fqdn

The ConfigurationDomainController parameter specifies the FQDN of the configuration domain controller to be used for reading Exchange configuration information in this session.

Confirm

Optional

System.Management.Automation.SwitchParameter

The Confirm switch causes the command to pause processing and requires you to acknowledge what the command will do before processing continues. You don't have to specify a value with the Confirm switch.

PreferredGlobalCatalog

Optional

Microsoft.Exchange.Data.Fqdn

The PreferredGlobalCatalog parameter specifies the FQDN of the global catalog server to be used for reading recipient information in this session.

RecipientViewRoot

Optional

System.String

The RecipientViewRoot parameter specifies the organizational unit (OU) to include in the recipient scope for this session. When you specify a recipient scope with this parameter, only the recipients included in the scope are returned. To specify an OU, use the syntax <FQDN of domain>/<OU tree>.

SetPreferredDomainControllers

Optional

Microsoft.Exchange.Data.MultiValuedProperty

The SetPreferredDomainControllers parameter specifies the list of domain controllers used to read information from Active Directory in this session. You must specify the FQDN of the domain controllers. Separate multiple domain controllers using commas.

ViewEntireForest

Optional

System.Boolean

The ViewEntireForest parameter specifies whether all the objects in the forest are viewed and managed in this session. Valid values are $true and $false.

When you specify a value of $true, the value stored in the RecipientViewRoot parameter is removed and all of the recipients in the forest can be viewed and managed.

WhatIf

Optional

System.Management.Automation.SwitchParameter

The WhatIf switch instructs the command to simulate the actions that it would take on the object. By using the WhatIf switch, you can view what changes would occur without having to apply any of those changes. You don't have to specify a value with the WhatIf switch.

You need to be assigned permissions before you can run this cmdlet. Although all parameters for this cmdlet are listed in this topic, you may not have access to some parameters if they're not included in the permissions assigned to you. To see what permissions you need, see the "Active Directory Domain Services server settings" entry in the Exchange and Shell Infrastructure Permissions topic.

This example sets the recipient scope to the Marketing Users OU in the contoso.com domain for the current session.

Set-AdServerSettings -RecipientViewRoot "contoso.com/Marketing Users"

This example sets the scope of the current session to the entire forest and designates gc1.contoso.com as the preferred global catalog server.

Set-AdServerSettings -ViewEntireForest $true -PreferredGlobalCatalog gc1.contoso.com
© 2012 Microsoft. All rights reserved. Terms of Use | Trademarks | Privacy Statement
Page view tracker