Solved

adding a domain group to local admin group on selected  machines via script

Posted on 2009-07-02
3
184 Views
Last Modified: 2012-05-07
adding a domain group to local admin group on selected  machines via script

I have used this for a machine locally....

net localgroup administrators domain\group /add

How do i add remote machine ....example

net ....remotemachine localgroup.......etc

Thanks
0
Comment
Question by:chowdri
3 Comments
 
LVL 38

Accepted Solution

by:
Shift-3 earned 500 total points
ID: 24767295
One way to do this is with PsExec, e.g.
psexec \\remotemachine net localgroup domain\group /add

But in the long term it is usually better to use the Restricted Groups feature in Group Policy.
0
 
LVL 2

Expert Comment

by:kai_bluesky
ID: 24778776
0

Featured Post

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Welcome back!  My apologies for taking so long to write part two of this series; it's been a long time coming!  As I promised in Part 1, this article will focus on how to locate those elusive AD properties that you are searching for.  Why is this us…
Introduction During my participation as a VBScript contributor at Experts Exchange, one of the most common questions I come across is this: "I have a script that runs against only one computer. How can I make it run against a list of computers in …
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

679 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question