Using Cmdlets to Reverse Domain Preparation

 

Topic Last Modified: 2011-03-02

Use the Disable-CsAdDomain cmdlet to reverse the domain preparation step.

To use cmdlets to reverse domain preparation

  1. Log on to any server in the domain as a member of the Domain Admins group.

  2. Start the Lync Server Management Shell: Click Start, click All Programs, click Microsoft Lync Server 2010, and then click Lync Server Management Shell.

  3. Run:

    Disable-CsAdDomain [-Domain <Fqdn>] [-DomainController <Fqdn>] [-Force <SwitchParameter>] 
    [-GlobalCatalog <Fqdn>] [-GlobalSettingsDomainController <Fqdn>] 
    

    For example:

    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).