Bulk User Modification script
dear all,i need 2 scriptfirst oneto modifymutiple users' "Alias "attribute to be equal to the "SamAccounName"( pre win 2000 logon) i can do it for one user at a time as following$user= get-mailbox Userset-mailbox User -Alias $User.SamAccountNameSo How to do it as a bulk ???Second i need a script to modify the "MsexchQueryBaseDN" attribute to multiple users at once.best Regards,mwahab
March 23rd, 2009 1:54am
Hey Mwahab,1. Get-Mailbox | Set-Mailbox -Alias $_.SamAccountName2. Below article explains you how to setmsExchQueryBaseDN for bulk user at a time..How to set the msExchQueryBaseDN attribute for users via powershellhttp://blogs.msdn.com/dgoldman/archive/2009/01/08/how-to-set-the-msexchquerybasedn-via-powershell.aspxAmit Tank | MVP - Exchange | MCITP:EMA MCSA:M | http://ExchangeShare.WordPress.com
Free Windows Admin Tool Kit Click here and download it now
March 23rd, 2009 5:55am
Hi Amit,Thank u man.....you always make me happy after your post :)mwahab
March 23rd, 2009 11:39am
J Amit Tank | MVP - Exchange | MCITP:EMA MCSA:M | http://ExchangeShare.WordPress.com
Free Windows Admin Tool Kit Click here and download it now
March 23rd, 2009 4:59pm