Add a Domain User or Group to the Local Administrators Account

This is a simple one-line script used to add a domain user or group to the local Administrators group. I use this all the time to update lab environments via a login script.

Add to favorites
E-mail Twitter Digg Facebook
Sign in to ask a question

  • Same here
    1 Posts | Last post November 26, 2013
    • I receve the same error. has anyone made any progress on this?
  • Trouble with script
    1 Posts | Last post November 15, 2012
    • I keep getting an "Expected end of statement" at Line: 1, Char: 16.
      net localgroup Administrators /add "domain\user"
                     This is where error occurs.