Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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

1 Answer 1

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

 
discard

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.