Fixing “The trust relationship between this workstation and the primary domain failed” error.
Step 1
If you know the local admin password – great! just click Switch User and log in as .\administrator and your password “.\” replaces the computer name in case you don’t know it.
If you do not know the local admin password but previously logged in with your domain credentials, you are still good. Unplug the network cable, disable wireless, then reboot the system (not necessary). After the reboot log in with your domain credentials and you should be able to get back in.
Step 2
Open PowerShell as administrator. Run this command sequence:
$credential = Get-Credential – (enter domain admin account when prompted)
Reset-ComputerMachinePassword
Another option:
Reset-ComputerMachinePassword -Server ClosestDomainControllerNameHere
If not help – then use KB2771040:
- Use a local administrator account to log on to the computer.
- Select 开始, press, and hold (or right-click) Computer > 特性.
- Select 更改设置 next to the computer name.
- 上 Computer Name 选项卡, 选择 改变.
- Under the 成员 heading, 选择 Workgroup, type a workgroup name and then select 好的.
- When you are prompted to restart the computer, 选择 好的.
- 上 Computer Name 选项卡, 选择 改变 再次.
- Under the 成员 heading, 选择 Domain, and then type the domain name.
- Select 好的, and then type the credentials of the user who has permission in the domain.
- When you are prompted to restart the computer, 选择 好的.
- Restart the computer.