{"id":1882,"date":"2020-07-17T10:54:04","date_gmt":"2020-07-17T17:54:04","guid":{"rendered":"https:\/\/SUMMALAI.COM\/?p=1882"},"modified":"2020-07-17T13:16:47","modified_gmt":"2020-07-17T20:16:47","slug":"how-to-fix-trust-relationship-has-failed-error","status":"publish","type":"post","link":"https:\/\/SUMMALAI.COM\/?p=1882","title":{"rendered":"How to Fix \u201cTrust relationship has failed\u201d Error"},"content":{"rendered":"\n<p>This is a very old issue, since the dawn of sysadmin time as we know it: the issue where our domain member server or computer loses its trust relationship to the domain.<\/p>\n\n\n\n<p>Yes, yes, the dreaded words that appear on your login screen once you try to login to one of your servers on a very sunny and rather hot Monday, after a good and quiet weekend.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img fetchpriority=\"high\" decoding=\"async\" width=\"498\" height=\"140\" src=\"https:\/\/SUMMALAI.COM\/wp-content\/uploads\/2020\/07\/trust-relationship-failed.png\" alt=\"\" class=\"wp-image-1889\" srcset=\"https:\/\/SUMMALAI.COM\/wp-content\/uploads\/2020\/07\/trust-relationship-failed.png 498w, https:\/\/SUMMALAI.COM\/wp-content\/uploads\/2020\/07\/trust-relationship-failed-300x84.png 300w\" sizes=\"(max-width: 498px) 100vw, 498px\" \/><figcaption>Looks like this<\/figcaption><\/figure><\/div>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img decoding=\"async\" width=\"400\" height=\"305\" src=\"https:\/\/SUMMALAI.COM\/wp-content\/uploads\/2020\/07\/860-logon-error.png\" alt=\"Trust relationship failed issue\" class=\"wp-image-1887\" srcset=\"https:\/\/SUMMALAI.COM\/wp-content\/uploads\/2020\/07\/860-logon-error.png 400w, https:\/\/SUMMALAI.COM\/wp-content\/uploads\/2020\/07\/860-logon-error-300x229.png 300w\" sizes=\"(max-width: 400px) 100vw, 400px\" \/><figcaption>Or looks like this<\/figcaption><\/figure><\/div>\n\n\n\n<p><strong>The trust relationship between this workstation and the primary domain failed.<\/strong><\/p>\n\n\n\n<p>Well, a lot of us would just go in with the local administrator account and just rejoin the machine to the domain. But here are some other alternatives, including what to do if we do not remember the local administrator password and we only have the domain login. Luckily, there\u2019 a way to bypass that annoying issue.<\/p>\n\n\n\n<p>Firstly, we never need to rejoin the machine to the domain if we have this problem.<\/p>\n\n\n\n<p>If you are working on a remote computer, like via TeamViewer on a user&#8217;s laptop, you can use below PowerShell cmd to fix this. Your user will not able to see your admin password in this way.  Recommended solution.<\/p>\n\n\n\n<p><strong>Reset-ComputerMachinePassword -Server &lt;your-domain-controller&gt; -Credential (Get-Credential)<\/strong><\/p>\n\n\n\n<p>Run the following command from a PowerShell prompt should also work.<\/p>\n\n\n\n<p><strong>Netdom resetpwd \/Server:&lt;your-domain-controller&gt; \/UserD:&lt;domain-admin-account&gt; \/PasswordD:&lt;domain-admin-password&gt;<\/strong><\/p>\n\n\n\n<p>Now to dissect the command: we call the&nbsp;<strong>netdom<\/strong>&nbsp;command with the&nbsp;<strong>resetpwd<\/strong>&nbsp;(reset password) switch and we provide the domain controller we will authenticate against and the credentials of a domain admin account. Simple. I will also explain in a little bit why this issue actually happens in the first place.<\/p>\n\n\n\n<p>So easy! We do not even have to restart the machine after these commands!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This is a very old issue, since the dawn of sysadmin time as we know it: the issue where our domain member server or computer loses its trust relationship to the domain. Yes, yes, the dreaded words that appear on your login screen once you try to login to one of your servers on a <a class=\"read-more\" href=\"https:\/\/SUMMALAI.COM\/?p=1882\">Read More<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_bbp_topic_count":0,"_bbp_reply_count":0,"_bbp_total_topic_count":0,"_bbp_total_reply_count":0,"_bbp_voice_count":0,"_bbp_anonymous_reply_count":0,"_bbp_topic_count_hidden":0,"_bbp_reply_count_hidden":0,"_bbp_forum_subforum_count":0,"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[10,14,15],"tags":[282,283],"class_list":["post-1882","post","type-post","status-publish","format-standard","hentry","category-microsoft","category-windows-7-8-10","category-windows-servers","tag-trust-relationship-between-this-workstation-and-the-primary-domain-failed","tag-trust-relationship-fail"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/SUMMALAI.COM\/index.php?rest_route=\/wp\/v2\/posts\/1882","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/SUMMALAI.COM\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/SUMMALAI.COM\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/SUMMALAI.COM\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/SUMMALAI.COM\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1882"}],"version-history":[{"count":4,"href":"https:\/\/SUMMALAI.COM\/index.php?rest_route=\/wp\/v2\/posts\/1882\/revisions"}],"predecessor-version":[{"id":1890,"href":"https:\/\/SUMMALAI.COM\/index.php?rest_route=\/wp\/v2\/posts\/1882\/revisions\/1890"}],"wp:attachment":[{"href":"https:\/\/SUMMALAI.COM\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1882"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/SUMMALAI.COM\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1882"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/SUMMALAI.COM\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1882"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}