Link to home
Start Free TrialLog in
Avatar of bsharath
bsharathFlag for India

asked on

Script to add 1 user to all Distribution/Security groups that are mailed enabled in thre Managed tab.

Hi,

Script to add 1 user to all Distribution/Security groups that are mailed enabled in thre Managed tab.
I want one user  to be able to change the user membership from outlook. So need to add that user and check the box where it states. "Manager can update membership list"

Can anyone help with this addition.

REgards
Sharath
Avatar of Meir Rivkin
Meir Rivkin
Flag of Israel image

to check/uncheck "Manager can update membership list" option for user/group or all groups under specific OU, use the following script:
http://www.codeproject.com/KB/vbscript/MngChkBox.aspx
it seems that MailEnable property only works for Exchange 2003 because of CDOEXM. For 2007 it's generally better to use the PowerShell CmdLets provided with Exchange 2007, in part because they're much easier to work with and in part because they'll be properly supported for this kind of automation.
Avatar of bsharath

ASKER

Thanks
But each group i want a different manager to be placed...
I will have the input gile as

Groupname;paul
Groupname2;Albert
ASKER CERTIFIED SOLUTION
Avatar of RobSampson
RobSampson
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Thanks Rob
Where should i mention the user names and groups is it like
Groupname;Username
Yes, that should work fine.  It will add the "username" to the ManageBy tab of the "GroupName".

Rob.