IT博客汇
  • 首页
  • 精华
  • 技术
  • 设计
  • 资讯
  • 扯淡
  • 权利声明
  • 登录 注册

    Solve without rejoining domain: The trust relationship between this workstation and the primary domain failed

    lesca发表于 2017-05-23 10:16:22
    love 0

    Introduction

    You might have encountered this error message many times: “The trust relationship between this workstation and the primary domain failed”.
    The general solution is dis-joining and re-joining the domain. Any other ways without doing so? The answer is yes.

    Error message

    The trust relationship between this workstation and the primary domain failed.

    Solution: without rejoining the domain

    Login as local administrator account, run Powershell with elevated privileges and type this command:
    Reset-ComputerMachinePassword -Server "DC1.contoso.com" -Credential domain\Administrator

    After reset the computer password, log off current account and login with domain account.

    How it works!

    The key reason the workstation lost trust is because this computer account’s password has been updated or expired in the Active Directory, however the workstation itself doesn’t know it.
    We can reset the password now by Powershell command-let as mentioned above.

    Also, to avoid this, there is a GPO setting that defines how long time the password will be updated:
    Computer Configuration\Windows Settings\Security Settings\Local Policies\Security Options\Domain member: Maximum machine account password age

    Reference

    [1] Reset-ComputerMachinePassword
    [2] Domain member: Maximum machine account password age



沪ICP备19023445号-2号
友情链接