Set Cutsomattribute3 for multiple Mailbox users
Dear all,Ineed to set the CustomAttribute3 to multiple mailboxes in the same database but i need to make the customattribute3 different in each user to be UserAlias@domain.comso i make the following Get-Mailboxes -database XXXXX | Set-Mailbox -CustomAttribute3 "%m@domain.com "i supposed that %m=Alias but unfortunately %m didn't replaced by every user aliasso any idea??Best Regards,mwahab
March 17th, 2009 2:31pm
Get-Mailboxes -database XXXXX| foreach { $a=$_.alias,"@domain.com"; $b =[string]::join("", $a); Set-Mailbox $_.alias -CustomAttribute3 $b }I hope you like this..!! ;)Amit Tank | MVP - Exchange | MCITP:EMA MCSA:M | http://ExchangeShare.WordPress.com
Free Windows Admin Tool Kit Click here and download it now
March 17th, 2009 3:07pm
Amitreally you areamazing .......i don't have words to thank u ...........thank u man you are the best :)....but could u tell me and all of members here how could we learn the powershell ??? and where could we find help regarding the powershell scripting ??Best Regards,mwahab
March 17th, 2009 3:16pm
My pleasure, mate...Here are some of the secrets...~ You can startpowershelllearning with help file which has some nice tips & tricks...WindowsPowerShellGraphical Help Filehttp://www.microsoft.com/downloads/details.aspx?FamilyId=3B3F7CE4-43EA-4A21-90CC-966A7FC6C6E8&displaylang=en~ Then you can jump towards Exchange, here is a TechNet help about EMS...Using the Exchange Management Shellhttp://technet.microsoft.com/en-us/library/bb123778.aspx~ Regularly practice and learn new things or tips & tricks by using various ready-made functions, statements and operators...Amit Tank | MVP - Exchange | MCITP:EMA MCSA:M | http://ExchangeShare.WordPress.com
Free Windows Admin Tool Kit Click here and download it now
March 17th, 2009 3:34pm