0

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.

1 Answer 1

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.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .