{"id":559,"date":"2012-12-11T13:03:43","date_gmt":"2012-12-11T13:03:43","guid":{"rendered":"http:\/\/ec2-34-242-84-40.eu-west-1.compute.amazonaws.com\/?p=559"},"modified":"2012-12-11T13:03:43","modified_gmt":"2012-12-11T13:03:43","slug":"fixing-the-trust-relationship-between-this-workstation-and-the-primary-domain-failed-without-leaving-the-domain-or-restarting","status":"publish","type":"post","link":"https:\/\/tomgeraghty.co.uk\/index.php\/fixing-the-trust-relationship-between-this-workstation-and-the-primary-domain-failed-without-leaving-the-domain-or-restarting\/","title":{"rendered":"Fixing \u201cthe trust relationship between this workstation and the primary domain failed\u201d without leaving the domain or restarting."},"content":{"rendered":"<p>Sometimes you\u2019ll find that for any one of a multitude of reasons, a workstation\u2019s computer account becomes locked or somehow otherwise disconnected from the actual workstation (say, if a machine with the same name joins the network, or if it\u2019s been offline for a very long time). When you try to log on to the domain you\u2019ll get a message that states:<\/p>\n<p>&nbsp;<\/p>\n<p>\u201cthe trust relationship between this workstation and the primary domain failed\u201d<\/p>\n<p>&nbsp;<\/p>\n<p>Now, what I would normally do in this situation is un-join and re-join the workstation to the domain, which works, but creates a new SID (Security Identifier) and can therefore break existing trusts in the domain with that machine, and of course it requires a reboot. So if you don\u2019t want to reboot, and you don\u2019t want to break existing trusts, do this:<\/p>\n<p>&nbsp;<\/p>\n<p>Use netdom.exe in a command prompt to reset the password for the machine account, from the machine with the trust problem.<\/p>\n<p>&nbsp;<\/p>\n<p><strong>netdom.exe resetpwd \/s:&lt;server&gt; \/ud:&lt;user&gt; \/pd:*<\/strong><\/p>\n<p>&lt;server&gt; = a domain controller in the joined domain<\/p>\n<p>&lt;user&gt; = DOMAIN\\User format with rights to change the computer password<\/p>\n<p>&nbsp;<\/p>\n<p>* = the domain user password<\/p>\n<p>&nbsp;<\/p>\n<p>That should do it, in *<strong>most<\/strong>* cases.<\/p>\n<p><!--START MERCHANT:merchant name Business IT Online Office Shop from affiliatewindow.com.--><br \/>\n                                                                                        \t\t\t<a href=\"http:\/\/www.awin1.com\/cread.php?s=164504&#038;v=2607&#038;q=93990&#038;r=164870\"><img decoding=\"async\" src=\"http:\/\/www.awin1.com\/cshow.php?s=164504&#038;v=2607&#038;q=93990&#038;r=164870\" border=\"0\"><\/a><br \/>\n                                                                <!--END MERCHANT:merchant name Business IT Online Office Shop from affiliatewindow.com--><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Sometimes you\u2019ll find that for any one of a multitude of reasons, a workstation\u2019s computer account becomes locked or somehow otherwise disconnected from the actual workstation (say, if a machine with the same name joins the network, or if it\u2019s been offline for a very long time). When you try to log on to the &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/tomgeraghty.co.uk\/index.php\/fixing-the-trust-relationship-between-this-workstation-and-the-primary-domain-failed-without-leaving-the-domain-or-restarting\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Fixing \u201cthe trust relationship between this workstation and the primary domain failed\u201d without leaving the domain or restarting.&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1,4],"tags":[41,71,76,77],"class_list":["post-559","post","type-post","status-publish","format-standard","hentry","category-blog","category-tech","tag-it","tag-servers","tag-tech-2","tag-technology"],"_links":{"self":[{"href":"https:\/\/tomgeraghty.co.uk\/index.php\/wp-json\/wp\/v2\/posts\/559","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/tomgeraghty.co.uk\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/tomgeraghty.co.uk\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/tomgeraghty.co.uk\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/tomgeraghty.co.uk\/index.php\/wp-json\/wp\/v2\/comments?post=559"}],"version-history":[{"count":0,"href":"https:\/\/tomgeraghty.co.uk\/index.php\/wp-json\/wp\/v2\/posts\/559\/revisions"}],"wp:attachment":[{"href":"https:\/\/tomgeraghty.co.uk\/index.php\/wp-json\/wp\/v2\/media?parent=559"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tomgeraghty.co.uk\/index.php\/wp-json\/wp\/v2\/categories?post=559"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tomgeraghty.co.uk\/index.php\/wp-json\/wp\/v2\/tags?post=559"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}