{"id":3313,"date":"2016-12-07T18:04:37","date_gmt":"2016-12-07T23:04:37","guid":{"rendered":"http:\/\/batchpatch.com\/?p=3313"},"modified":"2016-12-07T18:05:19","modified_gmt":"2016-12-07T23:05:19","slug":"adding-hosts-to-batchpatch-from-active-directory","status":"publish","type":"post","link":"https:\/\/batchpatch.com\/adding-hosts-to-batchpatch-from-active-directory","title":{"rendered":"Adding Hosts to BatchPatch from Active Directory"},"content":{"rendered":"<p>Even if you have been using BatchPatch for a while, you might have realized that you can import host names into a BatchPatch grid directly from Active Directory, if you desire.  <\/p>\n<p>In BatchPatch use the &#8216;File > Add hosts from directory&#8217; option.<\/p>\n<p><a href=\"\/wp-content\/uploads\/2016\/12\/2016-12-07-17_41_52-File_Add_Hosts_From_Directory.png\"><img loading=\"lazy\" decoding=\"async\" src=\"\/wp-content\/uploads\/2016\/12\/2016-12-07-17_41_52-File_Add_Hosts_From_Directory.png\" alt=\"2016-12-07-17_41_52-file_add_hosts_from_directory\" width=\"654\" height=\"438\" class=\"aligncenter size-full wp-image-3314\" srcset=\"https:\/\/batchpatch.com\/wp-content\/uploads\/2016\/12\/2016-12-07-17_41_52-File_Add_Hosts_From_Directory.png 654w, https:\/\/batchpatch.com\/wp-content\/uploads\/2016\/12\/2016-12-07-17_41_52-File_Add_Hosts_From_Directory-300x201.png 300w\" sizes=\"auto, (max-width: 654px) 100vw, 654px\" \/><\/a><\/p>\n<p>In most cases BatchPatch will automatically detect and retrieve the defaultNamingContext so that it can bind to your Active Directory domain.  However, in some environments, it&#8217;s possible that you would manually have to input the domain controller name that you wish to connect to.  For the sake of this example, I am on a computer that is *not* a domain member, and so in order to connect to an Active Directory domain in BatchPatch, I am required to both specify the domain controller name as well as the credentials of a user with permission to read from the directory.  In the screenshot below you can see that I&#8217;ve done exactly that.<\/p>\n<p><a href=\"\/wp-content\/uploads\/2016\/12\/2016-12-07-17_46_43-.png\"><img loading=\"lazy\" decoding=\"async\" src=\"\/wp-content\/uploads\/2016\/12\/2016-12-07-17_46_43-.png\" alt=\"2016-12-07-17_46_43\" width=\"804\" height=\"553\" class=\"aligncenter size-full wp-image-3315\" srcset=\"https:\/\/batchpatch.com\/wp-content\/uploads\/2016\/12\/2016-12-07-17_46_43-.png 804w, https:\/\/batchpatch.com\/wp-content\/uploads\/2016\/12\/2016-12-07-17_46_43--300x206.png 300w, https:\/\/batchpatch.com\/wp-content\/uploads\/2016\/12\/2016-12-07-17_46_43--768x528.png 768w\" sizes=\"auto, (max-width: 804px) 100vw, 804px\" \/><\/a><\/p>\n<p>Once you have established the connection with Active Directory, you may browse through the tree to select computers to add to the BatchPatch grid.  If you highlight a container or organizational unit (OU), BatchPatch will display all of the machine accounts (computers) that exist inside of that container or OU.  <\/p>\n<p><a href=\"\/wp-content\/uploads\/2016\/12\/2016-12-07-17_49_42-Add-hosts-from-directory.png\"><img loading=\"lazy\" decoding=\"async\" src=\"\/wp-content\/uploads\/2016\/12\/2016-12-07-17_49_42-Add-hosts-from-directory.png\" alt=\"2016-12-07-17_49_42-add-hosts-from-directory\" width=\"802\" height=\"551\" class=\"aligncenter size-full wp-image-3316\" srcset=\"https:\/\/batchpatch.com\/wp-content\/uploads\/2016\/12\/2016-12-07-17_49_42-Add-hosts-from-directory.png 802w, https:\/\/batchpatch.com\/wp-content\/uploads\/2016\/12\/2016-12-07-17_49_42-Add-hosts-from-directory-300x206.png 300w, https:\/\/batchpatch.com\/wp-content\/uploads\/2016\/12\/2016-12-07-17_49_42-Add-hosts-from-directory-768x528.png 768w\" sizes=\"auto, (max-width: 802px) 100vw, 802px\" \/><\/a><\/p>\n<p>If you select only a single computer in the directory tree, then of course only that single computer will be displayed for addition to the grid.<\/p>\n<p><a href=\"\/wp-content\/uploads\/2016\/12\/2016-12-07-17_51_05-Add-hosts-from-directory.png\"><img loading=\"lazy\" decoding=\"async\" src=\"\/wp-content\/uploads\/2016\/12\/2016-12-07-17_51_05-Add-hosts-from-directory.png\" alt=\"2016-12-07-17_51_05-add-hosts-from-directory\" width=\"802\" height=\"551\" class=\"aligncenter size-full wp-image-3317\" srcset=\"https:\/\/batchpatch.com\/wp-content\/uploads\/2016\/12\/2016-12-07-17_51_05-Add-hosts-from-directory.png 802w, https:\/\/batchpatch.com\/wp-content\/uploads\/2016\/12\/2016-12-07-17_51_05-Add-hosts-from-directory-300x206.png 300w, https:\/\/batchpatch.com\/wp-content\/uploads\/2016\/12\/2016-12-07-17_51_05-Add-hosts-from-directory-768x528.png 768w\" sizes=\"auto, (max-width: 802px) 100vw, 802px\" \/><\/a><\/p>\n<p>If you tick the box in the lower left corner of the window for &#8216;Recursive search&#8217; BatchPatch will find all machine accounts in the selected directory and all subdirectories.<\/p>\n<p><a href=\"\/wp-content\/uploads\/2016\/12\/2016-12-07-17_53_09-Add-hosts-from-directory.png\"><img loading=\"lazy\" decoding=\"async\" src=\"\/wp-content\/uploads\/2016\/12\/2016-12-07-17_53_09-Add-hosts-from-directory.png\" alt=\"2016-12-07-17_53_09-add-hosts-from-directory\" width=\"802\" height=\"551\" class=\"aligncenter size-full wp-image-3319\" srcset=\"https:\/\/batchpatch.com\/wp-content\/uploads\/2016\/12\/2016-12-07-17_53_09-Add-hosts-from-directory.png 802w, https:\/\/batchpatch.com\/wp-content\/uploads\/2016\/12\/2016-12-07-17_53_09-Add-hosts-from-directory-300x206.png 300w, https:\/\/batchpatch.com\/wp-content\/uploads\/2016\/12\/2016-12-07-17_53_09-Add-hosts-from-directory-768x528.png 768w\" sizes=\"auto, (max-width: 802px) 100vw, 802px\" \/><\/a><\/p>\n<p>If you would like to add a computer (or multiple computers) to the BatchPatch grid, first you click the <strong>>><\/strong> button to move them to your staging list.<\/p>\n<p><a href=\"\/wp-content\/uploads\/2016\/12\/2016-12-07-17_55_01-Add-hosts-from-directory.png\"><img loading=\"lazy\" decoding=\"async\" src=\"\/wp-content\/uploads\/2016\/12\/2016-12-07-17_55_01-Add-hosts-from-directory.png\" alt=\"2016-12-07-17_55_01-add-hosts-from-directory\" width=\"802\" height=\"551\" class=\"aligncenter size-full wp-image-3320\" srcset=\"https:\/\/batchpatch.com\/wp-content\/uploads\/2016\/12\/2016-12-07-17_55_01-Add-hosts-from-directory.png 802w, https:\/\/batchpatch.com\/wp-content\/uploads\/2016\/12\/2016-12-07-17_55_01-Add-hosts-from-directory-300x206.png 300w, https:\/\/batchpatch.com\/wp-content\/uploads\/2016\/12\/2016-12-07-17_55_01-Add-hosts-from-directory-768x528.png 768w\" sizes=\"auto, (max-width: 802px) 100vw, 802px\" \/><\/a><\/p>\n<p>Next you have two additional options that you may select, if desired, before clicking &#8216;Add to grid.&#8217;  The first option &#8216;Import description field&#8217; allows you to automatically import the description field for the computer from Active Directory into the &#8216;Description&#8217; column in BatchPatch.  The second option &#8216;Append DNS suffix to hosts&#8217; allows you to automatically append the specified DNS suffix to the host name before adding the host name to the destination grid.  So, for example, if you have host &#8216;Computer1&#8217; on domain &#8216;MyCompany.com,&#8217; and you work in an environment where multiple domains exist, such that your DNS settings require you to generally use fully qualified names, then you can simply tick the &#8216;Append DNS suffix to hosts&#8217; box and add the domain suffix that you wish to append.  Then when you click &#8216;Add to grid&#8217; all hosts will be added with the suffix you specified.  So in the above-mentioned example, we would see &#8216;Computer1.MyCompany.com&#8217; get added to the grid instead of just &#8216;Computer1.&#8217;<\/p>\n<p>When you are ready to add all of your hosts to the grid, simply click &#8216;Add to grid.&#8217; All hosts that are displayed in &#8216;Computers to add to BatchPatch grid&#8217; list will be added to the BatchPatch grid.<\/p>\n<p><a href=\"\/wp-content\/uploads\/2016\/12\/2016-12-07-18_01_52-Add-hosts-from-directory.png\"><img loading=\"lazy\" decoding=\"async\" src=\"\/wp-content\/uploads\/2016\/12\/2016-12-07-18_01_52-Add-hosts-from-directory.png\" alt=\"2016-12-07-18_01_52-add-hosts-from-directory\" width=\"802\" height=\"551\" class=\"aligncenter size-full wp-image-3321\" srcset=\"https:\/\/batchpatch.com\/wp-content\/uploads\/2016\/12\/2016-12-07-18_01_52-Add-hosts-from-directory.png 802w, https:\/\/batchpatch.com\/wp-content\/uploads\/2016\/12\/2016-12-07-18_01_52-Add-hosts-from-directory-300x206.png 300w, https:\/\/batchpatch.com\/wp-content\/uploads\/2016\/12\/2016-12-07-18_01_52-Add-hosts-from-directory-768x528.png 768w\" sizes=\"auto, (max-width: 802px) 100vw, 802px\" \/><\/a><\/p>\n<p><a href=\"\/wp-content\/uploads\/2016\/12\/2016-12-07-18_01_58-new-1-BatchPatch-X3.png\"><img loading=\"lazy\" decoding=\"async\" src=\"\/wp-content\/uploads\/2016\/12\/2016-12-07-18_01_58-new-1-BatchPatch-X3.png\" alt=\"2016-12-07-18_01_58-new-1-batchpatch-x3\" width=\"649\" height=\"410\" class=\"aligncenter size-full wp-image-3322\" srcset=\"https:\/\/batchpatch.com\/wp-content\/uploads\/2016\/12\/2016-12-07-18_01_58-new-1-BatchPatch-X3.png 649w, https:\/\/batchpatch.com\/wp-content\/uploads\/2016\/12\/2016-12-07-18_01_58-new-1-BatchPatch-X3-300x190.png 300w\" sizes=\"auto, (max-width: 649px) 100vw, 649px\" \/><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Even if you have been using BatchPatch for a while, you might have realized that you can import host names into a BatchPatch grid directly from Active Directory, if you desire. In BatchPatch use the &#8216;File > Add hosts from directory&#8217; option. In most cases BatchPatch will automatically detect and retrieve the defaultNamingContext so that [&hellip;]<\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[1,17,3],"tags":[228],"class_list":["post-3313","post","type-post","status-publish","format-standard","hentry","category-blog","category-general","category-tutorials","tag-active-directory"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/batchpatch.com\/wp-json\/wp\/v2\/posts\/3313","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/batchpatch.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/batchpatch.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/batchpatch.com\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/batchpatch.com\/wp-json\/wp\/v2\/comments?post=3313"}],"version-history":[{"count":1,"href":"https:\/\/batchpatch.com\/wp-json\/wp\/v2\/posts\/3313\/revisions"}],"predecessor-version":[{"id":3323,"href":"https:\/\/batchpatch.com\/wp-json\/wp\/v2\/posts\/3313\/revisions\/3323"}],"wp:attachment":[{"href":"https:\/\/batchpatch.com\/wp-json\/wp\/v2\/media?parent=3313"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/batchpatch.com\/wp-json\/wp\/v2\/categories?post=3313"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/batchpatch.com\/wp-json\/wp\/v2\/tags?post=3313"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}