<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Joe Rodgers : Active Directory</title><link>http://blogs.msdn.com/josrod/archive/tags/Active+Directory/default.aspx</link><description>Tags: Active Directory</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>Quick Way To Create Hundreds of User Accounts in AD</title><link>http://blogs.msdn.com/josrod/archive/2007/09/11/quick-way-to-create-hundreds-of-user-accounts-in-ad.aspx</link><pubDate>Tue, 11 Sep 2007 19:05:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:4868933</guid><dc:creator>rodgerjt</dc:creator><slash:comments>0</slash:comments><comments>http://blogs.msdn.com/josrod/comments/4868933.aspx</comments><wfw:commentRss>http://blogs.msdn.com/josrod/commentrss.aspx?PostID=4868933</wfw:commentRss><description>&lt;P&gt;I just had to create a few hundred user accounts in a test AD environment and the easiest way I new of is to use the &lt;A title="DSADD USER" href="http://technet2.microsoft.com/WindowsServer/en/library/8d37ecb0-ac28-4e05-aa05-da82dc36b54b1033.mspx#BKMK_5" mce_href="http://technet2.microsoft.com/WindowsServer/en/library/8d37ecb0-ac28-4e05-aa05-da82dc36b54b1033.mspx#BKMK_5"&gt;DSADD USER&lt;/A&gt;&amp;nbsp;cmd line tool. DSADD ships with Windows Server 2003 under the C:\Windows\System32&amp;nbsp;directory. &lt;/P&gt;
&lt;P&gt;In these examples, I'm creating accounts with the username format of&amp;nbsp;user001, user002, ... user099, user100, etc.&amp;nbsp; These command can be executed sequentially directly from a cmd prompt, or you can paste the commands into a .bat file and execute either from the command line or by double clicking.&lt;BR&gt;&lt;BR&gt;&lt;CODE&gt;FOR /L %%i IN (1,1,9) DO dsadd user "CN=user00%%i,CN=Users,DC=tailspintoys,DC=com" -display user00%%i&amp;nbsp; -pwd &lt;A href="mailto:pass@word1"&gt;pass@word1&lt;/A&gt; -canchpwd no -pwdneverexpires yes&lt;/P&gt;
&lt;P&gt;FOR /L %%i IN (10,1,99) DO dsadd user "CN=user0%%i,CN=Users,DC=tailspintoys,DC=com" -display user0%%i&amp;nbsp; -pwd &lt;A href="mailto:pass@word1"&gt;pass@word1&lt;/A&gt; -canchpwd no -pwdneverexpires yes&lt;/P&gt;
&lt;P&gt;FOR /L %%i IN (100,1,999) DO dsadd user "CN=user%%i,CN=Users,DC=tailspintoys,DC=com" -display user%%i&amp;nbsp; -pwd &lt;A href="mailto:pass@word1"&gt;pass@word1&lt;/A&gt; -canchpwd no -pwdneverexpires yes&lt;/P&gt;
&lt;P&gt;If you&amp;nbsp;need to create the user&amp;nbsp;accounts in a seperate&amp;nbsp;Organizational Unit (OU) in AD, modify&amp;nbsp;the UserDN as appropriate.&lt;/P&gt;
&lt;P mce_keep="true"&gt;&amp;nbsp;&lt;/P&gt;&lt;/CODE&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=4868933" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/josrod/archive/tags/Active+Directory/default.aspx">Active Directory</category><category domain="http://blogs.msdn.com/josrod/archive/tags/Users/default.aspx">Users</category><category domain="http://blogs.msdn.com/josrod/archive/tags/Accounts/default.aspx">Accounts</category></item></channel></rss>