Using Cmdlets to Reverse Domain Preparation
Topic Last Modified: 2011-03-02
Use the Disable-CsAdDomain cmdlet to reverse the domain preparation step.
Log on to any server in the domain as a member of the Domain Admins group.
Start the Lync Server Management Shell: Click Start, click All Programs, click Microsoft Lync Server 2010, and then click Lync Server Management Shell.
Disable-CsAdDomain [-Domain <Fqdn>] [-DomainController <Fqdn>] [-Force <SwitchParameter>] [-GlobalCatalog <Fqdn>] [-GlobalSettingsDomainController <Fqdn>]
Disable-CsAdDomain -Domain domain1.contoso.net -GlobalSettingsDomainController dc01.domain1.contoso.net -Force
The Force parameter specifies whether to force the task to run. If this parameter is not present the cmdlet checks to determine whether any Front End Servers or A/V Conferencing Servers are activated in the domain. If any of these servers are activated, the cmdlet terminates. If the Force parameter is specified, the action continues regardless of the state of server activation in the domain.
Note: The parameter GlobalSettingsDomainController allows you to indicate where global settings are stored. If your settings are stored in the System container (which is typical with upgrade deployments that have not had the global setting migrated to the Configuration container), you define a domain controller in the root of your Active Directory forest. If the global settings are in the Configuration container (which is typical with new deployments or upgrade deployments where the settings have been migrated to the Configuration container), you define any domain controller in the forest. If you do not specify this parameter, the cmdlet assumes that the settings are stored in the Configuration container and refers to any domain controller in Active Directory Domain Services (AD DS).