• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 320
  • Last Modified:

Local Admin Rights

I want to add domain users to local administrators groups on multiple hosts from the command line without having to login to each host.

NET LOCALGROUP does this for the host I am logged into, but is there a command to do this to hosts other than the one I am logged into?
1 Solution
use psexec with a text file list of the computers

PSEXEC.EXE @computers.txt NET LOCALGROUP “Administrators” domain\useraccount /ADD
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Prepare for an Exciting Career in Cybersecurity

Help prevent cyber-threats and provide solutions to safeguard our global digital economy. Earn your MS in Cybersecurity. WGU’s MSCSIA degree program curriculum features two internationally recognized certifications from the EC-Council at no additional time or cost.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now