This topic provides the information needed to install and configure Hyper-v on Server Core Server using PowerShell. It also includes a quick PowerShell reference table of common Hyper-V Administration tasks. This assumes that you already have installed and configured the Server Core.
Applies To: Hyper-V Server 2012
Installing Hyper-V Role
You can add the Hyper-V Role to the Server Core Server by the following PowerShell cmdlet:
|On Server 2012||Install-WindowsFeature Hyper-V|
|On Server 2008||Add-WindowsFeature Hyper-V -Restart|
Managing and configuring Hyper-V
After the Hyper-V role is added to the server, you can manage and configure the Hyper-V server remotely by using Hyper-V Management Console provided in RSAT. By running Server Manager on a remote computer, you can connect to a Hyper-V server.
You must use the version of Server Manager in Windows Server 2012 or that is available as part of the Remote Server Administration Tools for Windows 8 download package. Older versions of Server Manager will not work.
On the Core Server it is required to allow Remote Management by the following PowerShell cmdlets:
Enable Server Manager Remote Management
Allow Remote Server Manager
Note If you close all command prompt windows and want to open a new Command Prompt window, press CTRL+ALT+DELETE, click Start Task Manager, click More Details, click File, click Run, and then type cmd.exe. Alternatively, you can log off and log back on.
If you close all Windows PowerShell windows, you can open a new one by running PowerShell at a command prompt.
Configuration for Remote Management
If you are working in a workgroup environment, then it is required to establish alternate credentials on the client computer to could manage the Hyper-V server.
If the server is not a member of the domain, add server credentials to the remote machine, so that remote connections will be seamless by not asking for credentials
Run the following command on the client computer:
cmdkey /add:<ServerName> /user:<UserName> /pass:<password>
On the client computer, add the Hyper-V server as a trusted host with the following Windows PowerShell cmdlet:
Set-Item WSMan:localhostClientTrustedHosts -Value <RemoteServerName> -Concatenate
- Edit DCOM security on the remote machine to allow for Remote Access
- Click Start > Run > open DCOMCNFG
- Browse through to: "Component Services > Computers > My Computer"
- Open Properties for My Computer and select the COM Security tab
- In Access Permissions area click the Edit Limits button
- Select the Anonymous Logon group and make sure the Remote Access is set to Allowed