{"id":2059,"date":"2023-09-05T01:17:11","date_gmt":"2023-09-05T00:17:11","guid":{"rendered":"https:\/\/stevenwhiting.com\/blog\/?p=2059"},"modified":"2023-09-05T02:23:32","modified_gmt":"2023-09-05T01:23:32","slug":"remote-join-ad-with-djoin","status":"publish","type":"post","link":"https:\/\/stevenwhiting.com\/blog\/?p=2059","title":{"rendered":"Remote join AD with djoin"},"content":{"rendered":"\n<p><a href=\"https:\/\/docs.microsoft.com\/en-us\/windows-server\/remote\/remote-access\/directaccess\/directaccess-offline-domain-join\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/docs.microsoft.com\/en-us\/windows-server\/remote\/remote-access\/directaccess\/directaccess-offline-domain-join<\/a><\/p>\n\n\n\n<ul class=\"wp-block-list\" type=\"1\">\n<li>Run CMD as an Administrator on the DC and enter the following command.<\/li>\n\n\n\n<li>Djoin \/provision \/domain MYDOMAIN \/machine PD1000 \/policynames &#8220;DirectAccess Client Settings&#8221; \/rootcacerts \/savefile c:\\temp\\PD1000provision.txt \/reuse<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><a href=\"https:\/\/stevenwhiting.com\/blog\/wp-content\/uploads\/2023\/09\/image-2.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/stevenwhiting.com\/blog\/wp-content\/uploads\/2023\/09\/image-2.png\" alt=\"\" class=\"wp-image-2062\" style=\"width:818px;height:280px\" width=\"818\" height=\"280\" srcset=\"https:\/\/stevenwhiting.com\/blog\/wp-content\/uploads\/2023\/09\/image-2.png 546w, https:\/\/stevenwhiting.com\/blog\/wp-content\/uploads\/2023\/09\/image-2-300x103.png 300w\" sizes=\"auto, (max-width: 818px) 100vw, 818px\" \/><\/a><\/figure>\n\n\n\n<p>The new machine name will be made in the top level of the machines tree. Move it in AD to whatever OU you wish.<\/p>\n\n\n\n<p>The file that is created needs to be transferred onto the C: drive of the new machine.<\/p>\n\n\n\n<ul class=\"wp-block-list\" type=\"1\">\n<li>Put the provision file on the c: drive of the new machine in a folder like c:\\temp<\/li>\n<\/ul>\n\n\n\n<ul class=\"wp-block-list\" type=\"1\">\n<li>CD to the Windows directory on the new machine as below<\/li>\n<\/ul>\n\n\n\n<p>c:\\windows\\system32 folder of the new pc and run<\/p>\n\n\n\n<p>Djoin \/requestodj \/loadfile C:\\temp\\PD1000provision.txt \/windowspath %windir% \/localos<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/stevenwhiting.com\/blog\/wp-content\/uploads\/2023\/09\/image-3.png\"><img loading=\"lazy\" decoding=\"async\" width=\"977\" height=\"125\" src=\"https:\/\/stevenwhiting.com\/blog\/wp-content\/uploads\/2023\/09\/image-3.png\" alt=\"\" class=\"wp-image-2063\" srcset=\"https:\/\/stevenwhiting.com\/blog\/wp-content\/uploads\/2023\/09\/image-3.png 977w, https:\/\/stevenwhiting.com\/blog\/wp-content\/uploads\/2023\/09\/image-3-300x38.png 300w, https:\/\/stevenwhiting.com\/blog\/wp-content\/uploads\/2023\/09\/image-3-768x98.png 768w\" sizes=\"auto, (max-width: 977px) 100vw, 977px\" \/><\/a><\/figure>\n\n\n\n<p>Then reboot.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>https:\/\/docs.microsoft.com\/en-us\/windows-server\/remote\/remote-access\/directaccess\/directaccess-offline-domain-join The new machine name will be made in the top level of the machines tree. Move it in AD to whatever OU you wish. The file that is created needs to be transferred onto the C: drive of the &hellip; <a href=\"https:\/\/stevenwhiting.com\/blog\/?p=2059\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7],"tags":[64,337],"class_list":["post-2059","post","type-post","status-publish","format-standard","hentry","category-it-notes","tag-ad","tag-djoin"],"_links":{"self":[{"href":"https:\/\/stevenwhiting.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/2059","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/stevenwhiting.com\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/stevenwhiting.com\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/stevenwhiting.com\/blog\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/stevenwhiting.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2059"}],"version-history":[{"count":1,"href":"https:\/\/stevenwhiting.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/2059\/revisions"}],"predecessor-version":[{"id":2064,"href":"https:\/\/stevenwhiting.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/2059\/revisions\/2064"}],"wp:attachment":[{"href":"https:\/\/stevenwhiting.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2059"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/stevenwhiting.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2059"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/stevenwhiting.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2059"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}