{"id":71,"date":"2010-05-31T23:57:55","date_gmt":"2010-05-31T22:57:55","guid":{"rendered":"http:\/\/www.stevenwhiting.com\/blog\/?p=71"},"modified":"2025-04-02T09:51:53","modified_gmt":"2025-04-02T08:51:53","slug":"command-line-batch-for-adding-users-in-ad","status":"publish","type":"post","link":"https:\/\/stevenwhiting.com\/blog\/?p=71","title":{"rendered":"Command line batch for adding users in AD"},"content":{"rendered":"<p>In notepad type<\/p>\n<p>dsadd user &#8220;cn=%1, ou=<strong>OUName<\/strong>, dc=<strong>YourDomain<\/strong>, dc=<strong>YourSuffix<\/strong>&#8221; -fn %2 -ln %3 -pwd fred -mustchpwd yes<\/p>\n<p>Save as a bat file.<\/p>\n<p>cn = command name (user name)<br \/>\nfn = first name<br \/>\nln = Last name<\/p>\n<p>Everything in bold you replace with your own info.<\/p>\n<p>Name the file whatever, like adduser.bat<\/p>\n<p>Example:<\/p>\n<p><em>adduser testdummy Test Dummy<\/em><\/p>\n<p>Would add the user Test Dummy<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In notepad type dsadd user &#8220;cn=%1, ou=OUName, dc=YourDomain, dc=YourSuffix&#8221; -fn %2 -ln %3 -pwd fred -mustchpwd yes Save as a bat file. cn = command name (user name) fn = first name ln = Last name Everything in bold you &hellip; <a href=\"https:\/\/stevenwhiting.com\/blog\/?p=71\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7],"tags":[64,14],"class_list":["post-71","post","type-post","status-publish","format-standard","hentry","category-it-notes","tag-ad","tag-batch"],"_links":{"self":[{"href":"https:\/\/stevenwhiting.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/71","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=71"}],"version-history":[{"count":7,"href":"https:\/\/stevenwhiting.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/71\/revisions"}],"predecessor-version":[{"id":385,"href":"https:\/\/stevenwhiting.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/71\/revisions\/385"}],"wp:attachment":[{"href":"https:\/\/stevenwhiting.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=71"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/stevenwhiting.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=71"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/stevenwhiting.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=71"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}