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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Adding an AD Group to the local Admin Group

Status
Not open for further replies.

Starbuck10

IS-IT--Management
Nov 14, 2001
1
US
Hi,

I need to create a vbscript run at the computer level that adds a group from the Active Directory to the local admin group of a Windows 2000 Professional system. Does anyone have any examples of this?

Thanks
Starbuck

 
I also need this information. If anyone knows how to do this, please help us out.

Thanks.

Josh
 
Set oHeaven = GetObject("WinNT://PCName,Computer")
Set oAngels = oHeaven.GetObject("Group", "Administrators")
oAngels.Add "WinNT://Domain/Group,Group"

Replace the bold values accordingly. Jon Hawkins
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top