How to create a lot (for ex. 1000) users with script?
Hi. I need to cereate a lot may be 1000 users for some testing needs. How it could be done, or where can I read about it? Thanks!
September 7th, 2007 11:46am

This one from the technet script center should get you started. http://www.microsoft.com/technet/scriptcenter/scripts/ad/default.mspx?mfr=true Create 1000 Sample User Accounts Set objRootDSE = GetObject("LDAP://rootDSE")Set objContainer = GetObject("LDAP://cn=Users," & _ objRootDSE.Get("defaultNamingContext"))For i = 1 To 1000 Set objLeaf = objContainer.Create("User", "cn=UserNo" & i) objLeaf.Put "sAMAccountName", "UserNo" & i objLeaf.SetInfoNextWScript.Echo "1000 Users created."
Free Windows Admin Tool Kit Click here and download it now
September 7th, 2007 3:59pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics