Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

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

Posted on 2009-07-02
3
Medium Priority
?
188 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
2 Comments
 
LVL 38

Accepted Solution

by:
Shift-3 earned 2000 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

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

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

When it comes to writing scripts for a Client/Server computing environment it is essential to consider some way of enabling the authentication functionality within a script. This sort of consideration mainly comes into the picture when we are dealin…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
In response to a need for security and privacy, and to continue fostering an environment members can turn to for support, solutions, and education, Experts Exchange has created anonymous question capabilities. This new feature is available to our Pr…
Screencast - Getting to Know the Pipeline

877 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