Force Windows 7 to use specific DC

Thomas N
Thomas N used Ask the Experts™
What is the command line to force a Win 7 machine to use a specific DC?
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Tom CieslikIT Engineer
Distinguished Expert 2017

Strange question.
If you have Forrest in your organization and more than one DC, then active directory should be propagated to all DC so all DC's will have same information.
If you want force workstation to use specific DC just put this DNS IP on workstation NIC IPv4 properties

If you are logged on as a domain administrator then enter the command below to create the account and join the domain

netdom /domain:savilltech /user:savillj /password:nottelling member <computer name> /joindomain

If you are not an administrator the domain admin people will have to add you an account first using either server manager or using NETDOM.EXE

netdom /domain:savilltech /user:savillj /password:nettelling member <computer name> /add

Once the account has been add
Technical Specialist
Awarded 2017
Distinguished Expert 2018
That is not correct.

You need to configure Active Directory Sites and Services to link the subnet to correct site which in turn contains DC.
Test GC for example with this command
nslookup gc._msdcs.%USERDNSDOMAIN%

Open in new window

Setting logonserver variable has no effect on which DC is used for Kerberos, GC etc.

You can test with

Open in new window

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial