Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Change Active Directory Group Owner

Status
Not open for further replies.

mrdotz

Technical User
Jan 18, 2007
9
US
Hi guys!

I need help changing the group owner of many groups in Active Directory.
I have a list of AD groups in excel file that needs the group owner changed from one user to another user.
Can someone help me again please.
A script or tool will be helpful.

Thanks in advance for your help.
Mrdotz
 
Here is a sample of how to set the group manager

Code:
Set objGroup = GetObject _
  ("LDAP://cn=Scientists,ou=R&D,dc=NA,dc=fabrikam,dc=com")
 
objGroup.Put "managedBy", "cn=MyerKen,ou=Management,dc=NA,dc=fabrikam,dc=com"
objGroup.SetInfo

Refer to my FAQ faq329-4871 for information on how to take the above sample and make it read from Excel.

I hope you find this post helpful.

Regards,

Mark

Check out my scripting solutions at
Work SMARTER not HARDER. The Spider's Parlor's Admin Script Pack is a collection of Administrative scripts designed to make IT Administration easier! Save time, get more work done, get the Admin Script Pack.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top