While setting up a test Hyper-V lab I have been doing a few steps repeatedly to remotely manage both Windows Server 2012 R2 and Hyper-V Server 2012 R2 machines. Here is the basic setup:
Systems
Windows 8.1 Pro client machine not joined to a domain using WORKGROUP
Hyper-V Server 2012 R2 (Bare Metal) upon initial installation using WORKGROUP - Computer Name for this will be HV2012R2A
Windows Server 2012 R2 (in Hyper-V) using WORKGROUP. This is going to be the domain controller at some point - Computer Name for this will be WS2012R2A
Configuration
WinRM is turned on for both the Hyper-V Server 2012 R2 and Windows Server 2012 R2 machines
Server Manager and Hyper-V Manager are installed on the Windows 8.1 client
Here are the three major steps required:
1. Open notepad or notepad++ as administrator. Add two host entries with the IP address of each machine e.g.
This step makes it so you can resolve host names in the event you cannot. IP addresses should be whatever IP addresses the server has.
2. Open cmd.exe as administrator and add the server(s) as trusted hosts. Here you can comma separate to add multiple machines. Note: keep this in a text file as you will need to update the command and append more machines before you get a domain setup.
3. Now add credentials and make your life easy. Since this is used pre-domain, I am using the Administrator passwords used during setup:
Those three steps, assuming networking is all OK will get you to be able to remotely manage Windows Server and Hyper-V server hosts using Server Manager and Hyper-V Manager.
Systems
Windows 8.1 Pro client machine not joined to a domain using WORKGROUP
Hyper-V Server 2012 R2 (Bare Metal) upon initial installation using WORKGROUP - Computer Name for this will be HV2012R2A
Windows Server 2012 R2 (in Hyper-V) using WORKGROUP. This is going to be the domain controller at some point - Computer Name for this will be WS2012R2A
Configuration
WinRM is turned on for both the Hyper-V Server 2012 R2 and Windows Server 2012 R2 machines
Server Manager and Hyper-V Manager are installed on the Windows 8.1 client
Here are the three major steps required:
1. Open notepad or notepad++ as administrator. Add two host entries with the IP address of each machine e.g.
Code:
192.168.1.69 HV2012A
10.0.3.20 WS2012A
2. Open cmd.exe as administrator and add the server(s) as trusted hosts. Here you can comma separate to add multiple machines. Note: keep this in a text file as you will need to update the command and append more machines before you get a domain setup.
Code:
winrm set winrm/config/client @{TrustedHosts="HV2012A,WS2012A"}
Code:
cmdkey /add:HV2012A /user:ADMINISTRATOR /pass:PasswordA
cmdkey /add:WS2012A /user:ADMINISTRATOR /pass:PasswordA