Tuncay Sahin

ICT Engineer | Docent ICT & Trainer

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

Configure-SMRemoting.exe –enable

Allow Remote Server Manager

Enable-NetFirewallRule -DisplayGroup "Windows Remote Management"

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

  1. Edit DCOM security on the remote machine to allow for Remote Access
  2. Click Start > Run > open DCOMCNFG
  3. Browse through to: "Component Services > Computers > My Computer"
  4. Open Properties for My Computer and select the COM Security tab
  5. In Access Permissions area click the Edit Limits button
  6. Select the Anonymous Logon group and make sure the Remote Access is set to Allowed

Meer informatie

Voor meer informatie of voor een persoonlijk adviesgesprek kunt u altijd vrijblijvend contact met mij opnemen.

E-Mail

info@tuncaysahin.nl