• Skip to main content
  • Skip to primary sidebar

Technipages

Tutorials and fixes for smartphone, gadget, and computer problems

  • Topics
    • Android
    • Browsers
    • Gaming
    • Hardware
    • Internet
    • iPhone
    • Linux
    • macOS
    • Office
    • Reviews
    • Software
    • Windows
    • Definitions
  • Product Reviews
  • Downloads
  • About
Windows: How to Switch Domain Controller (Client)

Windows: How to Switch Domain Controller (Client)

February 2, 2021 by Mitch Bartlett 21 Comments

You may need to switch the domain controller a client computer is connecting to if you are troubleshooting a Windows domain issue. Doing so has helped me a few times to determine if there is a problematic domain controller on the network. Here’s how to force a Windows client computer to use a specific domain controller.


Find Current Domain Controller

You can grab the domain controller that the computer is currently connected to with these steps:

  1. Select the “Start” button.
  2. Type “CMD“.
  3. Hold “Shift” and right-click “Command Prompt“.
  4. Select “Run as different user“.
  5. Type credentials for a Domain Admin user account.
  6. At the Command Prompt, type:
    • nltest /dsgetdc:domainname

Switch Domain Controller Command

Actually switch the domain controller computer is using with these steps.

  1. Select the “Start” button.
  2. Type “CMD“.
  3. Hold “Shift” and right-click “Command Prompt“.
  4. Select “Run as different user“.
  5. Type credentials for a Domain Admin user account.
  6. At the command prompt, type:
    • nltest /Server:ClientComputerName /SC_RESET:DomainName\DomainControllerName

Note: This option is not permanent, as a restart of the computer may grab a different DC.


Set Domain Controller Via Registry

  1. Hold the Windows Key and press “R” to bring up the Windows Run dialog.
  2. Type “Regedit“, then press “Enter“.
  3. Navigate to:
    • HKEY_LOCAL_MACHINE
    • SYSTEM
    • CurrentControlSet
    • Services
    • Netlogon
    • Parameters
  4. Create a String value called “SiteName“, and set it to the domain controller you wish the computer to connect to. (i.e. DC1.domain.com)

 

  • ClientComputerName = Name of the client computer you want to switch domain for.
  • DomainName = Name of Domain.
  • DomainControllerName = Computer name of domain controller.

I hope this guide has helped you switch a client PC to a specific domain controller in your environment. Please feel free to leave a comment below and detail your experience.

You Might Also Like

  • Windows 10: How to Switch to Scientific Calculator
    Windows 10: How to Switch to Scientific Calculator
  • Switch vs Switch OLED - Who Wins?
    Switch vs Switch OLED - Who Wins?
  • Switch vs Switch Lite - Which One Is Better?
    Switch vs Switch Lite - Which One Is Better?
  • What Is a Client?
    What Is a Client?
  • What Is an Email Client?
    What Is an Email Client?
  • What Is a Domain?
    What Is a Domain?

Filed Under: Windows

Reader Interactions

Comments

  1. RSN000 says

    February 2, 2023 at 2:01 pm

    Neither of these worked for me.

  2. AnonyMooseUK says

    November 14, 2022 at 9:20 am

    very helpful, thanks. Worked for me. Had to force a client to a specific DC as sysvol is not replicating and i needed the latest GPO applied.

  3. DirectDeals says

    July 25, 2022 at 7:14 am

    Thanks for spreading a fruitful awareness about the Microsoft product in such a good way.

  4. Cristiano S. says

    August 7, 2021 at 7:10 am

    Great article, simple and very helpful. Thanks for sharing!

  5. Lloyd Chircop says

    July 15, 2021 at 7:15 pm

    We are seeing this in my environment still today, we have determined the problem to be when we decommission a DC, any computer that logs in using cached credentials and is not connected to the network will not be updated with a new DC. This variable is only updated on the machine DURING LOGON when CONNECTED to a network OR by default, windows updates the DC after 12 hours of being connected to the network. So anyone working remote that does not maintain connection to a domain for 12 hours will not be updated. We are looking into reducing this default to 8 hours and what impact it may have on our network.

  6. Mitch Bartlett says

    April 21, 2021 at 3:07 pm

    They will automatically point to the next available DC.

  7. Muhammad Amir says

    April 21, 2021 at 11:01 am

    Hi Support, I have a question. In our environment, there are 3 domain controllers.
    Two are in primary site and one in backup site for any fail over events.
    In the event of failure on DC01 in which all clients are pointing too for all authentication and everything.
    How is it quickly possible to point all clients to DC02 or does clients (Windows 10 laptops or Windows Servers) automatically points to DC02 if DC01 fails. I just want to prepare myself for any failures with DC01.

    Please, me know appreciate it.

  8. Dat says

    April 8, 2021 at 10:33 am

    It worked! thank you

  9. Raven says

    November 10, 2020 at 2:32 pm

    Just went through this recently. I see in the comments some had issues using NLTest.
    If you need to force a client connect to a certain domain controller the command format should be like this:

    c:> nltest /SERVER:client1 /SC_RESET:DOMAIN1\DC1

    /SERVER: is the name of the machine you want to force a connection *from*. e.g client1
    /SC_RESET is where you want to force the connection to which is the domain and domain controller in netbios format. e.g. DOMAIN\DC1

    Note: this is using the NetBIOS names as opposed to DNS FQDN.

  10. Bob Gilchrist says

    September 3, 2020 at 9:56 am

    Thank you!

  11. Scott says

    June 16, 2020 at 10:50 am

    Please add examples of the commands being ran. I could not get your Switch Domain Controller Command to work. I keep getting a syntax error.

    c:> nltest /Server:ted /SC_RESET:my.domain\dc01.my.domain

    I_NetLogonControl failed: Status = 1722 0x6ba RPC_S_SERVER_UNAVAILABLE

  12. Robert Miltenberger says

    January 30, 2020 at 11:20 am

    On same PC
    I ran nltest /dsgetdc:domainname and one of my DC’s was displayed
    I then ran echo %logonserver% and another DC was displayed
    Your thoughts.

    Thanks,

    Milty

  13. Todd Bartlett says

    December 17, 2019 at 9:24 am

    From one Bartlett to another, thanks Mitch

  14. Mitch Bartlett says

    April 26, 2019 at 11:38 am

    I would think you can deploy this via Group Policy by setting the Registry Key via GPO.

  15. Alber says

    April 26, 2019 at 11:04 am

    Is it possible to deploy this registry change to all PCs via a group policy object? It seems as though most of our PCs show our DC2 as their “logon server” and I would like to force them to all be DC1 as I need to take down DC2 for some maintenance? I don’t know why they all seem to use DC2 as their login server – both DC1 and DC2 are at the same site. DC1 has the FSMO roles.

  16. John says

    February 11, 2019 at 10:47 am

    I work for a large scale global company. And, once of our DC’s was having issues so we could not GPUpdate on a specific DC. The entire office was unable to receive updates.

    Using this to change the DC to a known good working DC allowed me to continue to image computers without and further issues.

    Thank you for this command. It’s been incredibly helpful!

  17. Stace Hema says

    December 12, 2018 at 9:24 pm

    Awesome work man!!! :)

  18. Benjamin says

    March 19, 2018 at 7:55 am

    Thank you! Just what I was looking for!

  19. Yinon says

    October 15, 2017 at 8:27 am

    Thanks Mitch!
    A very effective and easy to use method.

  20. peter says

    September 25, 2016 at 11:24 pm

    I cannot figure out why this error is happening when trying to run against my new PDC and all the fsmo roles are moved.

    I_NetLogonControl failed: Status = 1062 0x426 ERROR_SERVICE_NOT_ACTIVE
    I run it against the old PDC and it goes fine….FRUSTRATING.

  21. Mickaël says

    June 2, 2016 at 8:24 am

    Thank you for the info ! Tried the first option to switch the domaine controller, works really well =)

Did this help? Let us know!

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Primary Sidebar

Recent Posts

  • How to View Facebook Memories in 2023
  • How to Fix Google Maps Voice Directions Not Working
  • What Happens to Messages When You Permanently Delete Facebook
  • How to Connect Bluetooth Headphones to Steam Deck
  • How to Reset Root Password on Steam Deck
  • How to Update Steam Deck
  • Fixed Error Code: Out of Memory on Windows 11 Web Browsers
  • How to Play Minecraft on Chromebooks

Who’s Behind Technipages?

Baby and Daddy My name is Mitch Bartlett. I've been working in technology for over 20 years in a wide range of tech jobs from Tech Support to Software Testing. I started this site as a technical guide for myself and it has grown into what I hope is a useful reference for all.

You May Also Like

  • Thin Client
  • Public Domain
  • Cache Controller
  • Best Oculus Quest 2 Controller Adapters 2022
  • Windows 95/98
  • Microsoft Windows NT
  • Microsoft Windows
  • Microsoft Windows 95

© Copyright 2023 Guiding Tech Media · All Rights Reserved · Privacy