{"id":464,"date":"2011-06-12T16:36:00","date_gmt":"2011-06-12T16:36:00","guid":{"rendered":"https:\/\/www.geekmungus.co.uk\/?p=464"},"modified":"2022-11-05T10:53:43","modified_gmt":"2022-11-05T10:53:43","slug":"join-or-rejoin-a-member-server-or-workstation-using-netdom-command-line","status":"publish","type":"post","link":"https:\/\/geekmungus.co.uk\/?p=464","title":{"rendered":"Join or ReJoin A Member Server or Workstation using Netdom Command Line"},"content":{"rendered":"\n<pre class=\"wp-block-code\"><code>netdom join &lt;SERVERNAME> \/Domain:&lt;DOMAINNAME> \/UserD:&lt;username> \/PasswordD:* \/reboot<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">The * means prompt for a password.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Example<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Okay say you have a member server that has fallen off the domain, but you don&#8217;t want to go through the normal procedure of using &#8220;My Computer&#8221;->&#8221;Computer Name&#8221; and then disjoining to a WORKGROUP rebooting, then re-joining to the domain and rebooting again.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Note: You need to run this command from a domain controller, if you run it from the member server it won&#8217;t work.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Note: A Computer object must exist for the &#8220;remove&#8221; command to work.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>netdom remove \"servername\" \/d:domain \/userd:&lt;domainname>\\&lt;username> passwordd:&lt;password> \/userO:&lt;local admin username> passwordO:&lt;password>&lt;\/em><\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">The computer account in AD should now have a red x against it, ready for rejoining.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">followed by the:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>netdom join \"servername\" \/d:domain \/userd:&lt;DOMAINNAME>\\&lt;USERNAME> passwordd:&lt;PASSWORD> \/userO:&lt;local admin username> passwordO:&lt;password> \/OU:&lt;destination OU> \/reboot:10<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">The domain account should now be rejoined and the server will reboot after 10 seconds.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The * means prompt for a password. Example Okay say you have a member server that has fallen off the domain, but you don&#8217;t want to go through the normal procedure of using &#8220;My Computer&#8221;->&#8221;Computer Name&#8221; and then disjoining to a WORKGROUP rebooting, then re-joining to the domain and rebooting again. Note: You need to &#8230; <a title=\"Join or ReJoin A Member Server or Workstation using Netdom Command Line\" class=\"read-more\" href=\"https:\/\/geekmungus.co.uk\/?p=464\" aria-label=\"Read more about Join or ReJoin A Member Server or Workstation using Netdom Command Line\">Read more<\/a><\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[14],"tags":[],"class_list":["post-464","post","type-post","status-publish","format-standard","hentry","category-microsoft-windows"],"_links":{"self":[{"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/464","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=464"}],"version-history":[{"count":1,"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/464\/revisions"}],"predecessor-version":[{"id":1588,"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/464\/revisions\/1588"}],"wp:attachment":[{"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=464"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=464"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=464"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}