Thursday, 5 July 2018

Add AD security group to local administrators on Hyper-V server running core

 

 

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