How to manage virtual machines on your Windows Server 2012 Core with Hyper-V role.

If you install Windows Server 2012 Core, when you log on to server you will have only command prompt. Difference after you log on between Hyper-V 2012 and Windows Server 2012 Core with Hyper-V role is sconfig (so called blue) window. You can always start sconfig window by typing sconfig to your command prompt.

Hyper-V role by default does not install Hyper-V management console. If you try to run it you will receive error “c:\Windows\System32\virtmgmt.msc” does not exist. To install it you must use PowerShell

PowerShell give us possibility to install different Windows Features. To install Hyper-V management console you will use syntax: Add-WindowsFeature –name RSAT-Hyper-V-Tools

If you want to install other RSAT tools you can type Get-WindowsFeature to see names of available features and then type Add-WindowsFeature –name Name_Of_The_feature

Enabling File Sharing on Windows Server 2012 Core and Hyper-V 2012

One new/old thing about File and Printer Sharing.

If you have Windows server 2012 Core or Hyper-V 2012 server you can face problems where you want to open admin shares on server. If you type \\servername\c$ you will receive error message that you can’t reach this share.

This is because File and Printer sharing is disabled by default in Windows Server 2012 and in Hyper-V 2012. To enable File and Printer Sharing in command prompt you must type:

netsh advfirewall firewall set rule group=”File and Printer Sharing” new enable=Yes

After this you will be able to reach admin shares on Windows Server 2012 Core and Hyper-V 2012.

This is applicable also to Windows Server 2012 with GUI.