Fix: The trust relationship between this workstation and the primary domain failed
There are two ways how can you manage your client and server machines in home or business environment, including Workgroup and Domain infrastructure. The workgroup is decentralized network infrastructure used for home and small business networks up to 10 machines. Workgroup does not require a dedicated server for managing machines, every machine has a different user account. On another side, domain infrastructure is centralized network infrastructure which supports thousands of machines. For the implementation of domain infrastructure, you will need to purchase minimum one server which will act as Active Directory Domain Services and Domain Name Services. After you implement AD DS and DNS you will need to join all machines in the network to your domain and create domain user accounts for every user. Next time, the user will log on using domain user account, and not the local user account. There are a lot of benefits by using domain infrastructure, including centralized and simplified management, fault tolerance, one user account for many services, and others. Few users encouraged problem when logging to the domain, including error: The trust relationship between this workstation and the primary domain failed.
This issue occurs on client and server operating system, from Windows XP to Windows 10 and from Windows Server 2003 to Windows Server 2016. There are different reasons why this issue occurs, including a problem with a user account, the problem with the relationship between client and domain server and others. For this article, I created domain infrastructure appuals.com on Windows Server 2008 R2 and Windows Server 2016.
There are seven methods which will help you to solve this issue.
Method 1: Check DHCP configuration
Did you add new DHCP server or reconfigure your current DHCP pool? If not, please read next method. If yes, please continue reading this method. There are two ways how you can assign IP addresses to hosts in your computer network, including static and dynamic addressing. Static addressing is manually assigning IP addresses to your machines which consume much more time and decrease the productivity of IT Administrator. We are recommending you to use dynamic addressing using DHCP (Dynamic Host Computer Protocol) protocol. The best practice will include static addressing for servers, storage and network printers, and dynamic addressing to other hosts in the network. Few users encouraged problem after they added another DHCP server in the current network. The problem was wrong DHCP pool for hosts in the network. Based on that, we are recommending you to check is DHCP working properly and are you using right network subnet. We will show you how to check DHCP on Windows Server 2016 and router TP-Link TL-ER6120. Imagine, the right network is working in C class, 192.168.1.0/24. So, let’s start.
- Hold Windows logo and press R
- Type dhcpmgmt.msc and press Enter to open DHCP Management tool
- Expand your server as following appuals.com\IPv4\Scope. As you can see this DHCP is not configured properly. Our network is 192.168.1.0/24, and configured network is 192.168.100.1/24. In that case, you will need to change DHCP configuration.
- Close Device Management
In the second example, we will show you how to check DHCP configuration on TP-Link router. If you do not know how to access your router, please read the technical documentation of your router.
- Open Internet browser (Google Chrome, Mozilla Firefox, Edge or other)
- Type router IP address to access router
- Under Network tab choose LAN, and then DHCP to check your DHCP configuration. In our example, DHCP is enabled and configured as following 192.168.1.100 – 192.168.1.200, which is OK.
- Close Edge
Method 2: Rejoin a Computer from a Domain
In this method, you will need to rejoin your client machine from a domain. For this action, you need to use Domain Administrator account which has permission to do changes like join or rejoin machine from the domain. We will show you how to rejoin Windows 10 Pro from Windows Server 2016 Standard. The same procedure is compatible with other client and server operating system, including client operating system from Windows XP to Windows 8 and server operating system from Windows Server 2003 to Windows Server 2012 R2.
- Log on Windows 10 using local Administrator account
- Hold Windows logo and press E to open File Explorer
- On the right side of the File Explorer right click on This PC and choose Properties
- Click Advanced System Settings
- Choose Computer Name tab
- Click Change to add machine to Workgroup
- Choose Workgroup and type Workgroup In our example, the Workgroup name is WORKGROUP. You can type whatever you want.
- Click OK
- Type domain Administrator account and password and then click OK
- Click OK and then OK
- Close System Properties
- Restart your Windows machine
- Log on Windows 10 using local Administrator account
- Hold Windows logo and press E to open File Explorer
- On the right side of the File Explorer right click on This PC and choose Properties
- Click Advanced System Settings
- Choose Computer Name tab
- Click Change to add machine to domain
- Choose a domain and type the domain In our example it is appuals.com.
- Click OK
- Type domain Administrator account and password and then click OK
- Click OK and then OK
- Close System Properties
- Restart your Windows machine
- Log on Windows 10 using domain user account
- Enjoy working on your machine
Method 3: Reestablish trust through PowerShell
In this method, we will reestablish trust between the domain controller and client using PowerShell. You will need to log on using a local Administrator account.
PRO TIP: If the issue is with your computer or a laptop/notebook you should try using Reimage Plus which can scan the repositories and replace corrupt and missing files. This works in most cases, where the issue is originated due to a system corruption. You can download Reimage by Clicking Here
- Log on Windows 10 using local Administrator account
- Click on Start menu and type PowerShell
- Right click on PowerShell and choose Run as Administrator
- Press Yes to confirm running as Administrator
- Type $credential = Get-Credential and press Enter
- Enter domain admin account and password and then click OK
- Type Reset-ComputerMachinePassword -Credential $credential and press Enter
- Close PowerShell
- Restart your Windows machine
- Log on Windows 10 using domain user account
Method 4: Add domain controller to Credential Manager
In this method, you will use Credential Manager where you will add domain controllers account in Windows Credential. We will show you how to do in on Windows 10.
- Log on Windows 10 using local Administrator account
- Hold Windows logo and press R
- Type control.exe /name Microsoft.CredentialManager and press Enter to open Credential Manager
- Choose Windows Credential
- Type the address of the website or network location and your credentials
- Click OK
- Close Credential Manager
- Restart your Windows machine
- Log on Windows 10 using domain user account
Method 5: Use Netdom.exe to Reset a Machine Account Password
This method is compatible with Windows Server 2003 and Windows Server 2008 R2. If you are using a newer version of server operating systems, please read next method. We will show you how to reset a machine account password on Windows Server 2008 R2.
- Log on Windows Server using domain Administrator account
- Hold Windows logo and press R
- Type cmd and press Enter to open Command Prompt
- Type netdom resetpwd /s:server /ud:domain\User /pd:* and press Enter, where s is the name of domain server, domain is domain name and User is user account which can not connect to domain controller
- Close Command Prompt
- Move to Windows client machine
- Restart Windows machine
- Log on Windows machine using domain user account
- Enjoy working on your machine
Method 6: Reset Computer Account
In this method, you will need to reset computer account using Active Directory User and Computers tool which is integrated into servers with Active Directory Domain Services role. The procedure is simple and compatible with server operating systems from Windows Server 2003 to Windows Server 2016.
- Hold Windows logo and press R
- Type dsa.msc and press Enter to open Active Directory User and Computers
- Expand domain name. In our example it is appuals.com
- Choose Computer
- Navigate to the computer account which can not connect to a domain. In our example, it is computer Jasmin
- Right click on computer (Jasmin) and choose Reset Account
- Click Yes to confirm resetting computer account
- Click OK
- Close Active Directory User and Computers
- Restart Windows 10 machine
- Log on to your domain user account
- Enjoy working on Windows machine
Method 7: Perform a System Restore
We talked so much time about System Restore because it helped us so many times in troubleshooting issues with system or application. Also, system restore can help you to solve the issue with reverting your system to the previous state when everything worked properly. Please note that you can not restore your Windows machine to the previous state if System Restore is turned off. Please read how to perform a System Restore.
沒有留言:
張貼留言