The following procedures are tested on Windows Server 2016 TP4 and Windows 10 Computer.
Step1: Basic Hyper-v Host Configuration
Once Hyper Server 2016 is installed. Log on to Hyper-v host as administrator. You will be presented with command prompt. On the command prompt type sconfig.cmd and hit enter
You will be presented with the following screen. For a workgroup hyper-v host perform the following tasks from the configuration window.
Task 2: Computer Name (Reboot required)
Task 4: Remote Management
Task 7: Remote Desktop
Task 8: Network Settings
Task 11: Windows Activation
Step2: Configure Hyper-v Server 2016 Host
Open a PowerShell console as Administrator. Run the following command
Enable Remote Management
Configure-SMRemoting.exe -Enable
Open firewall for Remote Computer Management
Set-NetFirewallRule -DisplayGroup ‘Windows Management Instrumentation (WMI)’ -Enabled true –PassThru
Set-NetFirewallRule -DisplayGroup ‘Remote Event Log Management’ -Enabled true -PassThru
Open firewall for ping (ICMPv4)
Set-NetFirewallRule -DisplayName “File and Printer Sharing (Echo Request – ICMPv4-In)” -Enabled True -PassThru
Enable Remote Desktop and allow remote connections
cscript.exe c:\Windows\System32\SCregEdit.wsf /AR 0
Enable Remote disk management
Set-NetFirewallRule -DisplayGroup ‘Remote Volume Management’ -Enabled true -PassThru
Enable Anonymous logon from remote computer
Navigate to c:\windows\system32 folder Type dcomcnfg.exe , Expand Computers, Right Click on My Computer, Click Properties, Click Com Security, On the Access Permission Window, Click Edit Limits, Click ‘anonymous logon’ Select local access and remote access, Click Ok.
Step3: Configure Windows 10 Computer or Windows Server 2016 with Desktop Experience
If you choose to manage workgroup hyper-v host from Windows 10 computer, enable Hyper-v feature on Windows 10 computer. Open a PowerShell console as Administrator. Run the following command
Enable Hyper-v Feature on Windows 10
Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Hyper-V –All
Add Hyper-v Role in Windows Server 2016
Install-WindowsFeature –Name Hyper-V -IncludeManagementTools -Restart
Add a Host (A) Record
Open Windows Explorer or navigate to C:\Windows\System32\Drivers\etc
Type Notepad hosts
Add IP address and host name of the remote hyper-v host. Save and exist notepad
Enable Remote Management
winrm quickconfig
For Managing remote systems, add remote hyper-v host as a trusted computer
winrm set winrm/config/client @{TrustedHosts=”Name of the Remote Hyper-v Server”}
Enable remote disk Management (add this command on both systems) firewall rule
Set-NetFirewallRule -DisplayGroup ‘Remote Volume Management’ -Enabled true -PassThru
Enable Anonymous logon from remote computer
Navigate to c:\windows\system32 folder Type dcomcnfg.exe , Expand Computers, Right Click on My Computer, Click Properties, Click Com Security, On the Access Permission Window, Click Edit Limits, Click ‘anonymous logon’ Select local access and remote access, Click Ok.
Step3: Connect to Remote Hyper-v Host
Open Hyper-v Manager, Right Click on Hyper-v Manager, Click Connect to Server.., Type the host name you added in hosts file,
To specify credentials for the remote Hyper-V host, select Connect as another user: in the Select Computer dialogue box then select Set User….
Type HostName\Administrator and Password , Click Remember Password, Click Ok
Click Ok.
References