Solved

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

Posted on 2009-07-02
3
185 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Clear Filter 8 95
Windows Server 2012 & 2000 Network HELP 55 117
using vb script 5 58
Excel Web Add-in Where is Visual Basic used 9 85
Well hello again!  Glad to see you've made it this far without giving up.  In this, the fourth installment of my popular series, I'm going to cover functions and subroutines, what they are, and why they are useful.  Just in case you stumbled onto th…
Not long ago I saw a question in the VB Script forum that I thought would not take much time. You can read that question (Question ID  (http://www.experts-exchange.com/Programming/Languages/Visual_Basic/VB_Script/Q_28455246.html)28455246) Here (http…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …

752 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