Reply
Old May 19th, 2006 Top | #1
 
T. Eynon's Avatar
OSNN Junior Addict
Joined: May 2006
Posts: 3
Reputation: 0
Power: 0

Default Script or Batch file to load Administrators in XP

Does anyone know how to create a batch or script file for loading users into the Local Groups Adminstrator folder of an XP PC. We have about 150 users that we would like to make administrators on for several test PCs and would like to do this with a batch or script file. If anyone knows how to do this please reply back with the syntax to place in the batch or script file.

Thanks
T. Eynon is offline   Reply With Quote
Old May 20th, 2006 Top | #2

OSNN Folding Team  
fitz's Avatar
XPista7eopard*ix
Joined: April 2004
Location: Chicagoland
Posts: 4,028
Reputation: 2947
Power: 168

Default Re: Script or Batch file to load Administrators in XP

You could use a GPO and setup "restricted groups" specifically if you are running active directory.

If you really need a script, i could probably whip something up fairly quickly.
fitz is offline   Reply With Quote
Old May 20th, 2006 Top | #3
 
T. Eynon's Avatar
OSNN Junior Addict
Joined: May 2006
Posts: 3
Reputation: 0
Power: 0

Default Re: Script or Batch file to load Administrators in XP

Thanks Fitz for the advice on the GP0. I was hoping not to have to involve my networking team.

I did find something with the following syntax but was not able to get it to work. It was for Windows 2000.

I really don't need to load users into a specific group like the last line shows all I really want to do is load them as an administrator in the administrators group file.

I was hoping to have a user be able to loads these admins by running a .bat file.

Thanks. Tim

Code found:

Net Localgroup Administrators

"Domain_Name\Developer1" /Add

Net Localgroup Administrators

"Domain_Name\Developer2" /Add

Net Localgroup Administrators

"Domain_Name\Developer3" /Add

Net Localgroup Administrators

"Domain_Name\Developer4" /Add

Net Localgroup Administrators

"Domain_Name\Developer5" /Add

And use

Net Localgroup Administrators

"Domain_Name\Developers_Group"

/Add
T. Eynon is offline   Reply With Quote
Old May 20th, 2006 Top | #4

OSNN Folding Team  
fitz's Avatar
XPista7eopard*ix
Joined: April 2004
Location: Chicagoland
Posts: 4,028
Reputation: 2947
Power: 168

Default Re: Script or Batch file to load Administrators in XP

that code should work on XP also.. but it looks like you have the synax a little mixed up..

The commands should also be on the same line:

Code:
net localgroup administrators /add %domain%\%user%
Understand, in order to add to the administrator group, the batch file needs to be run as an administrator.
fitz is offline   Reply With Quote
Old May 21st, 2006 Top | #5
 
T. Eynon's Avatar
OSNN Junior Addict
Joined: May 2006
Posts: 3
Reputation: 0
Power: 0

Default Re: Script or Batch file to load Administrators in XP

Fitz,

Thanks. This works great!!!
T. Eynon is offline   Reply With Quote
Old May 22nd, 2006 Top | #6

OSNN Folding Team  
fitz's Avatar
XPista7eopard*ix
Joined: April 2004
Location: Chicagoland
Posts: 4,028
Reputation: 2947
Power: 168

Default Re: Script or Batch file to load Administrators in XP

glad you got it working
fitz is offline   Reply With Quote

Reply

Bookmarks

Thread Tools

Posting Rules

Similar Threads
Thread Thread Starter Forum Replies Last Post
vbscript or batch file to play audio file for user on startup Punkrulz Web Design & Coding 10 November 29th, 2006 1:48pm
Batch FIle PLEASE HELP arew264 Windows Desktop Systems 6 February 24th, 2005 12:56am
Script error on ossn.net load Ohzopants Site Problems & Feedback 15 August 13th, 2004 9:33am
Batch File Help the_tazinator Windows Desktop Systems 4 November 21st, 2003 12:12am
App Killing Script or batch file??? baser5nature Windows Desktop Systems 9 February 20th, 2003 4:19am