PS Command to list Administrators Group of Remote Server

PS Command to list Administrators Group of Remote Server

Invoke-Command -ComputerName Comp01 -ScriptBlock{net localgroup Administrators}

*Replace Comp1 with server/computer name.

Thanks,
WintelAdmin

Facebook Comments
Print Friendly, PDF & Email