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

Adding users to the Local Administrators Group

Status
Not open for further replies.

kachbo1

IS-IT--Management
Nov 16, 2004
40
GB
Can anyone help with the process via group policy in which I can add a nos of users to the local Administrators group on a nos of computers.
 
Download Sanur( to pipe your password to the runas command. Set a startup script to run the following in a batch file.

runas /noprofile /u:domain\administrator "net localgroup administrators domaingroupname /add" | sanur.exe password
 
This is not a permanent change because as soon as the group policy refreshes the user is removed from the group.

Do it and then run:
secedit /refreshpolicy machine_policy /enforce
and then run:
net localgroup administrator

if you have a gpo in AD that restricts the access to this group this won't work. I've been looking for a different solution too.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top