[ Team LiB ] |
Recipe 11.16 Moving a Domain Controller to a Different Site11.16.1 ProblemYou want to move a domain controller to a different site. This may be necessary if you promoted the domain controller without first adding its subnet to Active Directory. In that case, the domain controller will be added to the Default-First-Site-Name site. 11.16.2 Solution11.16.2.1 Using a graphical user interface
11.16.2.2 Using a command-line interface> dsmove "cn=<ServerName>,cn=servers,cn=<CurrentSite>,[RETURN] cn=sites,cn=configuration,<ForestRootDN>" -newparent "cn=servers,cn=<NewSite>,[RETURN] cn=sites,cn=configuration,<ForestRootDN>" 11.16.2.3 Using VBScript' This code moves a server to a different site. ' ------ SCRIPT CONFIGURATION ------ ' Should contain the common name of the server object strDC = "<DomainControllerName>" ' e.g. dc02 ' Name of servers current site strCurrentSite = "<CurrentSite>" ' e.g. Default-First-Site-Name ' Name of site you want to move server to strNewSite = "<NewSite>" ' e.g. Raleigh ' ------ END CONFIGURATION --------- strConfigDN = GetObject("LDAP://RootDSE").Get("configurationNamingContext") strServerDN = "LDAP://cn=" & strDC & ",cn=servers,cn=" & _ strCurrentSite & ",cn=sites," & strConfigDN strNewParentDN = "LDAP://cn=servers,cn=" & strNewSite & ",cn=sites," & strConfigDN Set objCont = GetObject(strNewParentDN) objCont.MoveHere strServerDN, "cn=" & strDC 11.16.3 DiscussionAfter you move a server to a new site, you might want to monitor replication to and from that server to make sure that any new connections that are needed get created and start replicating. See Recipe 12.2 for more on viewing the replication status of a server. 11.16.4 See AlsoMS KB 214677 (Automatic Detection of Site Membership for Domain Controllers) |
[ Team LiB ] |