Update custom attributes in Exchange 2007 on the basis of a particular security group.
Hi all,
I want to update my custom attribute 7 to "test" for all those users who are the members of a security group name "test group".
some user's attribute 7 is already updated but i want to update it for all. can anyone please tell me how can i do that in the simplest way.
Thanks in Advance.
SSA
February 2nd, 2011 6:57am
Get-Recipient -Filter { (memberofgroup
-like
"CN=Test Group,OU=DemoLab Groups,DC=demolab,DC=local") } | set-mailbox -CustomAttribute7
"Test"
#Replace the DN path with your own
Free Windows Admin Tool Kit Click here and download it now
February 2nd, 2011 11:09am
Dear Mike,
Thanks for the Reply,
But my users exist in different OU is there any way to handel all OU in a single command ?
Thanks in Advance.
SSA
February 3rd, 2011 1:33am
that's the DN for the group, not the filters for the users.
Mike Crowley
Check out My Blog!
Free Windows Admin Tool Kit Click here and download it now
February 3rd, 2011 1:43am