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.
Table of Contents
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.
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.
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.
Type in “CMD” in the Start menu, right-click “Command Prompt,” and then click “Open file location.”
Hold down the Shift key and then right-click the “Command Prompt” file. From the context menu, click “Run as different user.”
Now, enter the credentials for the domain administrator account (in the format shown in the image below) and click Ok.
The Command Prompt will now run with domain administrative privileges.
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]
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.
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.
Open the Registry Editor by typing in “regedit” in the Run Command box.
Paste the following in the address bar for quick navigation and hit Enter:
Create a new String Value under Parameters by the name “SiteName.”
Right-click the Parameters key in the left pane, expand New, and then click String Value. Name this value “SiteName“.
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:
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.
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.