First connect to the remote server with powershell
|
Enter-PSSession -ComputerName contosohv01
|
Next run the command to add the group:
|
Add-LocalGroupMember -Group "Administrators" -Member "CONTOSO\Hyper-V Admins"
|
If you're paranoid (like me) and want to check this worked you can use:
|
Get-LocalGroupMember "Administrators"
|
No comments:
Post a Comment