|
|
![]() |
|
|
Top | #1 |
|
OSNN Junior Addict
Joined: May 2006
Posts: 3
Reputation: 0
Power: 0 |
Thanks |
|
|
|
|
|
Top | #2 |
|
XPista7eopard*ix
Joined: April 2004
Location: Chicagoland
Posts: 4,028
Reputation: 2947
Power: 168 |
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. |
|
|
|
|
|
Top | #3 |
|
OSNN Junior Addict
Joined: May 2006
Posts: 3
Reputation: 0
Power: 0 |
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 |
|
|
|
|
|
Top | #4 |
|
XPista7eopard*ix
Joined: April 2004
Location: Chicagoland
Posts: 4,028
Reputation: 2947
Power: 168 |
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% |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
|
|
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 |