I believe in Hyper-V!

Converting WS2012 Core to a WS2012 with GUI and vice versa.

In the last few weeks I installed several Hyper-V hosts in my production environment. On every host I installed WS2012 Core with Hyper-V role. Why? Because I don’t need anything on that hosts except Hyper-V role, but, what if I’ll ever need something more than Hyper-V role? What if I’ll ever need WS2012 with GUI on that hosts?
In order to be ready for something like that, I decided to try on one of the test servers, and I would like to explain how to convert your installed WS2012 Core to a WS2012 “full” version (with GUI) and vice versa.

Follow this few steps:

1. Create a directory where Windows image will be mounted

MkDir MountDir
1

2. Determine the index number for a Server with a GUI image

Dism /get-wiminfo /wimfile:D:\sources\install.wim
2

3. Mount the WIM file using this command:

Dism /mountwim /WimFile:D:\sources\install.wim /Index:4 /MountDir:
c:\mountdir\readonly

3

4. On the last step, start PowerShell, then execute the following command;

a) PowerShell (press enter)
4
b) Install-WindowsFeature Server-Gui-Mgmt-Infra,Server-Gui-Shell –Restart –Source C:\mountdir\windows\winsxs
5 
6 
7

Now we have WS2012 with GUI installed!
 

8

If we want Core version of WS2012 we can do that through PowerShell! All you need to do is to execute the following command at an elevated Windows PowerShell:

Uninstall-WindowsFeature Server-Gui-Mgmt-Infra
9
10 
11

Now, again we have WS2012 Core ;)

14

Enjoy in this beautiful day :)

3 Responses to “Converting WS2012 Core to a WS2012 with GUI and vice versa.

  1. George

    Excellent post. I was checking continuously this blog and I’m inspired! Very helpful information particularly the ultimate phase :) I deal with such information much. I was seeking this particular info for a very lengthy time. Thanks and good luck.

  2. Monique B.

    Hi there! Thank you so much for this detailed and well-presented post. It sure helped me a lot. :)

  3. Monique B.

    Also, I just want to note that before we can start the mounting part, let the user first be reminded that the Windows 2012 Server CD be inserted first. I have two partitions in my pc and I instantly assumed that D:\ up there is a second partition and not the dvd per se. :)

Leave a Reply

Your email address will not be published. Required fields are marked *