Mailbox creation Automation
Guys, For my test environment I created a new OU and populated it with 200 users using the CSVDE but now all are user account are in "disabled state " So i want all the user to be enabled. Creation of mailboxes for all the AD users accounts through script / Tool/ Cmdlet (EMS) . Please help.
September 21st, 2011 3:05pm

Hello, Get-User -OrganizationalUnit OU | Enable-Mailbox -Database DB_NAME Greetings, Toni
Free Windows Admin Tool Kit Click here and download it now
September 21st, 2011 3:56pm

amit, Your question has nothing to do with a mailbox, it's an AD account question. modify the script below to what you need. Also, check out the tool i wrote to automate ad/exchange/lync accounts. ________________________ Set objRootDSE = GetObject("LDAP://rootDSE") Set objContainer = GetObject("LDAP://cn=Users," & _ objRootDSE.Get("defaultNamingContext")) For i = 2001 To 3000 Set objLeaf = objContainer.Create("User", "cn=Site02CoolGuy" & i) objLeaf.Put "sAMAccountName", "Site02CoolGuy" & i objLeaf.Put "description", "I am the Site02CoolGuy" & i objLeaf.Put "displayname", "zzSite02CoolGuy" & i objLeaf.Put "givenname", "Site02" objLeaf.Put "sn", "CoolGuy" & i objLeaf.Put "telephonenumber", "408555" & i objLeaf.Put "wwwhomepage", "www.Site02CoolGuy" & i & ".com" objLeaf.Put "physicaldeliveryofficename", "London" & i objLeaf.Put "userPrincipalName", "Site02CoolGuy" & i & "@zenqa.net" objLeaf.SetInfo Objleaf.setpassword "labpassword" & i Objleaf.accountdisabled = False Objleaf.setinfo Next WScript.Echo "1000 Users created." Z-Hire -- Automate IT Account creation process ( AD / Exchange / Lync ) Z-Term -- Automate IT account termination process ( AD / Exchange )
September 21st, 2011 7:02pm

Guys please give me some time i will check and update you all mean while if anybody is having more options then please...update. Thanks ..
Free Windows Admin Tool Kit Click here and download it now
September 23rd, 2011 8:45am

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

Other recent topics Other recent topics