Sent to you by Hudong via Google Reader:
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 DSADD USER cmd line tool. DSADD ships with Windows Server 2003 under the C:\Windows\System32 directory.
In these examples, I'm creating accounts with the username format of user001, user002, ... user099, user100, etcFOR /L %i IN (1,1,9) DO dsadd user "CN=user00%i,CN=Users,DC=tailspintoys,DC=com" -display user%i -pwd pass@word1 -canchpwd no -pwdneverexpires yes
FOR /L %i IN (10,1,99) DO dsadd user "CN=user0%i,CN=Users,DC=tailspintoys,DC=com" -display user%i -pwd pass@word1 -canchpwd no -pwdneverexpires yes
FOR /L %i IN (100,1,999) DO dsadd user "CN=user%i,CN=Users,DC=tailspintoys,DC=com" -display user%i -pwd pass@word1 -canchpwd no -pwdneverexpires yes
Things you can do from here:
- on MSDN Blogs
- Subscribe to MSDN Blogs using Google Reader
- Get started using Google Reader to easily keep up with all your favorite sites
没有评论:
发表评论