You want to force a host to be in a particular site.
126.96.36.199 Using a graphical user interface
188.8.131.52 Using a command-line interface
> reg add HKLM\System\CurrentControlSet\Services\Netlogon\Parameters /v SiteName /t[RETURN] REG_SZ /d <SiteName>
184.108.40.206 Using VBScript
' This code forces the host the script is run on to use a particular host ' ------ SCRIPT CONFIGURATION ------ strSite = "<SiteName>" ' e.g. Raleigh ' ------ END CONFIGURATION --------- strNetlogonReg = "SYSTEM\CurrentControlSet\Services\Netlogon\Parameters" const HKLM = &H80000002 set objReg = GetObject("winmgmts:root\default:StdRegProv") objReg.SetStringValue HKLM, strNetlogonReg, "SiteName", strSite WScript.Echo "Set SiteName to " & strSite
You can bypass the part of the DC Locator process that determines a client's site by hard-coding it in the Registry. This is generally not recommended and should primarily be used as a troubleshooting tool. If a client is experiencing authentication delays due to a misconfigured site or subnet object, you can hard-code its site so it temporarily points to a more optimal location (and domain controller).
11.21.4 See Also
Recipe 11.20 for finding the site of a client and MS KB 247811 (How Domain Controllers Are Located in Windows)