{"id":1364,"date":"2026-03-17T11:51:47","date_gmt":"2026-03-17T10:51:47","guid":{"rendered":"https:\/\/ndk.sytes.net\/wordpress\/?p=1364"},"modified":"2026-03-17T11:51:47","modified_gmt":"2026-03-17T10:51:47","slug":"repairing-the-domain-trust-relationship","status":"publish","type":"post","link":"https:\/\/ndk.sytes.net\/wordpress\/?p=1364","title":{"rendered":"Repairing the Domain Trust Relationship"},"content":{"rendered":"\n<p>If a computer is restored from an old restore point or a snapshot that was created before the computer\u2019s password was changed in AD, the machine password in the snapshot will differ from the AD computer object password.<\/p>\n\n\n\n<p>When the trust relationship between a workstation and the Active Directory domain is broken, you will encounter\u00a0errors\u00a0such as:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">The trust relationship between this workstation and the primary domain failed.<\/pre>\n\n\n\n<p>or<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">The security database on the server does not have a computer account for this workstation trust relationship.<\/pre>\n\n\n\n<p>To restore trust between the machine and the domain, you must log on to the computer locally using an account with local administrator privileges. Open your elevated\u00a0terminal session\u00a0and check if you have a valid trust relationship with the AD Domain with following PowerShell command:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Test-ComputerSecureChannel -Verbose<\/code><\/pre>\n\n\n\n<p>Should the result be something like<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">VERBOSE: The secure channel between the local computer and the domain &lt;DOMAIN> is broken.<\/pre>\n\n\n\n<p>You can fix it by running the repair command:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Test-ComputerSecureChannel -Repair -Credential &lt;DOMAIN>\\&lt;ADMINUSER> -Verbose<\/code><\/pre>\n\n\n\n<p>Result should be like this:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">VERBOSE: The secure channel between the local computer and the domain &lt;DOMAIN> was successfully repaired.<\/pre>\n\n\n\n<p>No reboot or delete\/add to AD is needed.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>If a computer is restored from an old restore point or a snapshot that was created before the computer\u2019s password was changed in AD, the machine password in the snapshot will differ from the AD computer object password. When the trust relationship between a workstation and the Active Directory domain is broken, you will encounter\u00a0errors\u00a0such [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7,9],"tags":[],"class_list":["post-1364","post","type-post","status-publish","format-standard","hentry","category-servers","category-windows"],"_links":{"self":[{"href":"https:\/\/ndk.sytes.net\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/1364","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ndk.sytes.net\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ndk.sytes.net\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ndk.sytes.net\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ndk.sytes.net\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1364"}],"version-history":[{"count":1,"href":"https:\/\/ndk.sytes.net\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/1364\/revisions"}],"predecessor-version":[{"id":1365,"href":"https:\/\/ndk.sytes.net\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/1364\/revisions\/1365"}],"wp:attachment":[{"href":"https:\/\/ndk.sytes.net\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1364"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ndk.sytes.net\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1364"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ndk.sytes.net\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1364"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}