PC Review


Reply
Thread Tools Rating: Thread Rating: 3 votes, 5.00 average.

Local user added to local group on all computers

 
 
jayloveroni
Guest
Posts: n/a
 
      1st Oct 2003
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
 
Reply With Quote
 
 
 
 
Walter Schulz
Guest
Posts: n/a
 
      1st Oct 2003
>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
 
Reply With Quote
 
jayloveroni
Guest
Posts: n/a
 
      1st Oct 2003
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
>.
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem adding local user to local group or deleting local user fkitzmann Microsoft Windows 2000 4 16th Feb 2008 04:02 AM
Local Group added to local Administrators group =?Utf-8?B?Sm9uYXMgRWRob2xt?= Windows XP General 0 30th Jan 2006 03:38 PM
Cannot add domain user into admin group for local computers ganeshokade@gmail.com Microsoft Windows 2000 Group Policy 0 27th Nov 2005 07:58 PM
Strange behavior:unique user getting message cannot logon interactively;added user to local group and it doesn't work Marlon Brown Microsoft Windows 2000 Active Directory 1 29th Oct 2004 01:30 AM
loosing group policys that are being added to local computers Joakim Abrahamsson Windows XP Security 1 14th Oct 2003 11:48 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:29 PM.