Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


Script: Manage Local Groups on Mixed Domain

 
Logged in as: Guest
arrSession:exec spGetSession 2,2,1423
 Active Users: There are 0 members and 0 guests.
 Users viewing this topic: none
 

 

 
  
  Printable Version
All Forums >> [Scripting] >> WSH & Client Side VBScript >> Script: Manage Local Groups on Mixed Domain
  Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Page: [1]
Login
Message << Older Topic   Newer Topic >>
 Script: Manage Local Groups on Mixed Domain - 10/1/2004 7:11:39 PM   
  MORK

 

Posts: 3
Score: 0
Joined: 9/22/2004
From: USA
Status: offline
Hi All.

Looking for some direction on managing the Local Groups (Admin!) on workstations in my domain. I would like to be able to run a script that will configure these local groups to my liking without touching each machine directly.

Here is the scenario:

NT Domain (no AD):
WINNT Workstation
WIN2K Pro (Majority)

Administrators:
Admin Team - seperate admin accounts added to Domain Admin group
Client User Admins - Emergency Access regulated through Domain Group Membership for workstation access only
Client Server Admins - Webserver admins (no workstation access)

The client requires me to allow these users elevated rights under certain circumstances. This is not my option, but it has become my problem and it is getting worse.

I would like to run a script from my workstation that will read through a list of workstations and perform the following:
1. Delete all Users from Local Admin Group except the Local Administrator
2. Delete all Local Groups from Local Admin Group
3. Delete all Domain Groups from Local Admin Group EXCEPT specific domain groups and service accounts.
4. Add Authorized Domain Groups and Service Accounts

I have tried modifying some of the Technet scripts but couldn't get anything to "reset" the local admin group the way I need.

What scripting method would best help me to reach my goal? I have reviewed ADSI, WSH, VBScript, and WMI but haven't been able to get a clue.

Thanks,

MORK
 
 
Post #: 1
 
 Re: Script: Manage Local Groups on Mixed Domain - 10/5/2004 7:33:46 PM   
  kmahlangu

 

Posts: 2
Score: 0
Joined: 8/31/2004
From: South Africa
Status: offline
mork please try the pstools

(in reply to MORK)
 
 
Post #: 2
 
 Re: Script: Manage Local Groups on Mixed Domain - 10/6/2004 7:02:36 PM   
  MORK

 

Posts: 3
Score: 0
Joined: 9/22/2004
From: USA
Status: offline
kmahlangu,

Thank you for your reply!

I have not found anything in PSTOOLS v2.06 that will allow me to "reset" the Local Administrators Group on each machine in my domain. I know that I can change the local admin password, but that is not quite what I am attempting.

Active Directory would simplify my life greatly, but, I can't implement it on this domain. If you have any other suggestions, I am certainly listening! :)

Thanks again,

MORK

(in reply to MORK)
 
 
Post #: 3
 
 
 
  

If you found our site useful please link to us <a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>.
All Forums >> [Scripting] >> WSH & Client Side VBScript >> Script: Manage Local Groups on Mixed Domain Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts