Remove admin right remotely

AXISHK
AXISHK used Ask the Experts™
on
Is it possible to remove admin right for some Window 7 workstation remotely ?

How to list the current admin right for Window 7 workstation remotely ?

Thx
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Systems Administrator
Commented:
You can list local administrators using:

PS C:\> invoke-command {net localgroup administrators} -ComputerName remotehostname

You can remove John using:

PS C:\> invoke-command {net localgroup administrators John /delete} -ComputerName remotehostname

Author

Commented:
Thx

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial