How To Switch Domain Controller On Windows 11 [Temporary + Permanent]

Ways To Switch Domain Controller On Windows 11Ways To Switch Domain Controller On Windows 11

This article can prove helpful for the sysadmins working in an environment with multiple Domain Controllers (DC), especially if you are trying to troubleshoot and determine whether there is a bad controller. This can be done by switching the Domain Controller from one DC to another on a Windows client PC.

Changing your Domain Controller (while remaining inside the same domain) and then finding that it resolved the issue means that there was a problem with the initial controller. You may also want to change a Domain Controller for a client PC due to other reasons, like the user switching their location, their workgroup, etc.

In this post, we show you multiple ways to find your current Domain Controller’s name and how you can change it to a different controller on a Windows 11 PC. Do not confuse this with changing domains; instead, we will only be discussing changing DCs inside the same domain.

Find Current Domain Controller

You can get the name of your currently-joined domain from the computer’s “About” Settings page, or even from the Network Connections applet (ncpa.cpl) under the NIC.

View domain name from Settings
View domain name from Settings

When you know the name of the domain, note it down. You can then use the following cmdlet in the Command Prompt to find out which Domain Controller your PC is currently connected to:

Note: Replace [DomainName] with the name of your domain.

nltest /dsgetdc:[DomainName]
Get current domain controller name from Command Prompt
Get current domain controller name from Command Prompt

Here, you will find the name of the Domain Controller in front of “DC:“.

Now, you can continue to switch your domain controller to another server. Before you do, make sure that you have the required server’s name as well as the appropriate domain credentials.

Switch Domain Controller using Command Prompt [Temporary]

One of the methods to change your connected Domain Controller is from the Command Prompt. Use the following steps to change it:

Note: Using this method to change the Domain Controller is only temporary. The PC might catch another Domain Controller when it is restarted. To change the Domain Controller permanently, use the Windows Registry method shared in the next section.

  1. Type in “CMD” in the Start menu, right-click “Command Prompt,” and then click “Open file location.”

    Open CMD file location
    Open CMD file location
  2. Hold down the Shift key and then right-click the “Command Prompt” file. From the context menu, click “Run as different user.”

    Run CMD as a different user
    Run CMD as a different user
  3. Now, enter the credentials for the domain administrator account (in the format shown in the image below) and click Ok.

    Enter credentials for domain administrator account
    Enter credentials for domain administrator account

    The Command Prompt will now run with domain administrative privileges.

  4. Now use the following command while replacing the necessary variables according to your environment to change the Domain Controller:

    Replace [ComputerName] with the name of the Windows 11 client PC, [DomainName] with the name of the domain, and [DomainControllerName] with the name of the Domain Controller to which to want to change the controller.

    nltest /Server:[ComputerName] /SC_RESET:[DomainName]\[DomainControllerName]
    Change Domain Controller from Command Prompt
    Change Domain Controller from Command Prompt

That’s it! The Domain Controller should now be changed. You can confirm this by running the command discussed above to find out the name of your Domain Controller.

Confirm that Domain Controller has been changed
Confirm that Domain Controller has been changed

Change Domain Controller from Windows Registry [Permanent]

To change the Domain Controller permanently, use the steps given below. This way, you can make changes directly to the Windows Registry and switch to a different Domain Controller.

Note: Misconfiguration of critical values in the system’s registry could be fatal for your operating system. Therefore, we insist that you create a system restore point before proceeding forward with the process.

You can also use our top selection of disk imaging and backup software so you never lose your data or operating system again.

  1. Open the Registry Editor by typing in “regedit” in the Run Command box.

    Open the Registry Editor
    Open the Registry Editor
  2. Paste the following in the address bar for quick navigation and hit Enter:

    Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Netlogon\Parameters
    Navigate to the Parameters key
    Navigate to the Parameters key
  3. Create a new String Value under Parameters by the name “SiteName.”

    Create the String Value SiteName
    Create the String Value “SiteName”

    Right-click the Parameters key in the left pane, expand New, and then click String Value. Name this value “SiteName“.

  4. Double-click the string “SiteName” and set its Value Data to the Fully Qualified Domain Name (FQDN) of the Domain Controller that you want to switch to. This will be something like the following:

    DC2.DomainName.com
    Set Domain Controller name as the value for SiteName in Windows Registry
    Set Domain Controller name as the value for SiteName in Windows Registry
  5. Now close the Registry Editor and restart the computer for the changes to take effect.

When the computer restarts, the Windows PC will automatically connect to the selected Domain Controller every time.

Closing Thoughts

As we have experienced during the testing of these methods, a Domain Controller can get corrupted if incorrectly configured. At such a time, it is wisest to change the Domain Controller while the sysadmins work it out. You do not need to bear the losses caused by a faulty Domain Controller.

In this article, we show you both temporary and permanent methods to change your Domain Controller while staying within the same domain.

If you liked this post, Share it on:
Subhan Zafar is an established IT professional with interests in Windows and Server infrastructure testing and research, and is currently working with Itechtics as a research consultant. He has studied Electrical Engineering and is also certified by Huawei (HCNA & HCNP Routing and Switching).

Leave the first comment

Get Updates in Your Inbox

Sign up for the regular updates and be the first to know about the latest tech information

Talk to us now

Talk to us straight and get your questions answered right away

Tell Us About Your Project