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.

link|improve this question

67% accept rate
feedback

1 Answer

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.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

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