How to manage Hyper-V Server
Since managing it remotely in anon domain environment is a pain in the neck and I’ll have to setup quite a few servers in the next couple of weeks, here a quick ‘how to’ mange Hyper-V Server 2016 remotely.
SERVER CONFIGURATION
- Run
sconfig
-
Configure Remote Management + ping (Opt. 4 -> Opt. 4 -> Opt. 1)
-
Enabled Remote Desktop (Opt. 7 -> e -> Opt. 2)
-
Run this command to allow RDP through the server’s firewall:
netsh advfirewall firewall set rule group="remote desktop" new enable=Yes
- Launch Powershell and execute this command:
Install-WindowsFeature –Name Hyper-V –IncludeManagementTools –Restart
**
CLIENT CONFIGURATION
**
- Add an entry to the hostfile as you can not add a Hyper-V server via IP
(e.g. 192.168.1.1 HOSTSRV01.WORGROUP HOSTSRV01)
- Run -> dcomcnfg, right-click on ‘My Computer’ -> Properties -> COM Security Tab -> Access Permissions -> Edit Limits -> Anonymous Logon -> Allow ‘Local & Remote’ Access
3.
cmdkey /add:<HostServerName> /user:<AdminUsername> /pass:"<Password>"
-
Install the RSAT Tools for your Operating system. Open the Server Manager and add the Hyper-V host as a server.
-
You should get a permission error, run the following command:
Set-Item wsman:\localhost\Client\TrustedHosts <HostServerName> -Concatenate -Force
Now you should be able to remote manage / create / edit your Hyper-V Server.