Exchange 2007 Custom Attributes
is there a way I can update the custom attribute to 500 account all at once, via PowerShell?
September 9th, 2011 7:45pm
There are multiple ways using powershell or you can always use admodify and use the custom tab and enter your custom attribute.
Programmatically manipulate AD user attributes with PowerShell
http://dmitrysotnikov.wordpress.com/2007/07/16/programmatically-manipulate-ad-user-attributes-with-powershell/
One step further - PowerShell script to modify multiple users' property in Active Directory
http://myitforum.com/cs2/blogs/yli628/archive/2007/09/11/one-step-further-powershell-script-to-modify-multiple-users-property-in-active-directory.aspx
Admodify
http://admodify.codeplex.com/James Chong MCITP | EA | EMA; MCSE | M+, S+ Security+, Project+, ITIL msexchangetips.blogspot.com
Free Windows Admin Tool Kit Click here and download it now
September 9th, 2011 8:27pm
Hello,
do you want to change the attribute for all your users?
Then you can perform this command:
Get-Mailbox | Set-Mailbox -CustomAttribute1 ...
You can also set CustomAttribute2, CustomAttribute3 etc.
Greetings,
Toni
September 9th, 2011 9:01pm
If you have all your users in a CSV file with a header of User, for example, just run the following:
Import-Csv C:\users.csv | ForEach {Set-Mailbox $_.User -CustomAttribute1 "Sales users"}
Or if your CSV has multiple columns like User and Department, we can use that to set the CustomAttribute that you want:
Import-Csv C:\users.csv | ForEach {Set-Mailbox $_.User -CustomAttribute1 $_.Department}
http://LetsExchange.blogspot.com
Free Windows Admin Tool Kit Click here and download it now
September 11th, 2011 3:09pm
Hi Viministrator,
Any updates?
Frank Wang
Forum Support
Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
tnmff@microsoft.com.
September 12th, 2011 9:19am
Hi Viministrator,
Any updates?
Frank Wang
Free Windows Admin Tool Kit Click here and download it now
September 14th, 2011 4:53am