Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Does anyone know of a way (other than psexec) to add a user to the local administrators group of a remote machine?

I'm having trouble figuring out the syntax for wmic.

share|improve this question

If you're in an Active Directory Domain you can use Restricted Groups or Group Policy Preferences Groups. The latter is newer, more flexible, and recommended if possible.

There is a PowerShell solution here if you don't have an AD Domain.

Doing it through Group Policy is the right way to do it, though. It'll allow you to change it later very easily if you need to.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.