PC Review
Forums
Newsgroups
Windows 2000
Microsoft Windows 2000 CMD Promt
Local user added to local group on all computers
Forums
Newsgroups
Windows 2000
Microsoft Windows 2000 CMD Promt
Local user added to local group on all computers
![]() |
Local user added to local group on all computers |
|
|
Thread Tools |
Rating:
|
|
|
#1 |
|
Guest
Posts: n/a
|
I saw a post to add domain users to a domain group:
for /f %q in (addthesenames.txt) do (net group groupname % q /add /domain) But I want to write a script that will pull computernames from a text file, and add a local user from said computers to the said computers' Administrators group. All the computers have the same local user. Thanks in advance. jjs |
|
|
|
#2 |
|
Guest
Posts: n/a
|
>for /f %q in (addthesenames.txt) do (net group groupname %
>q /add /domain) > >But I want to write a script that will pull computernames >from a text file, and add a local user from said computers >to the said computers' Administrators group. All the >computers have the same local user. for /f %q in (addthesecomputers.txt) do psexec \\%q net localgroup administrators username /add PSEXEC will be found in PSTOOLS from www.sysinternals.com Computers must be up and running server service, which is default configuration. The command must be executed by a user with admin rights on the target computers. Ciao, Walter |
|
|
|
#3 |
|
Guest
Posts: n/a
|
Thanks,
I will give it a try. jjs >-----Original Message----- >>for /f %q in (addthesenames.txt) do (net group groupname % >>q /add /domain) >> >>But I want to write a script that will pull computernames >>from a text file, and add a local user from said computers >>to the said computers' Administrators group. All the >>computers have the same local user. > >for /f %q in (addthesecomputers.txt) do psexec \\%q net localgroup >administrators username /add > >PSEXEC will be found in PSTOOLS from www.sysinternals.com > >Computers must be up and running server service, which is default >configuration. The command must be executed by a user with admin >rights on the target computers. > >Ciao, Walter >. > |
|
![]() |
|
| Thread Tools | |
| Rate This Thread | |
|
|

Main Page 


