Convert Windows Server 2012 R2 Core to GUI
Converting Windows Server 2012 R2 Core to GUI became very simply in this release. After installing the windows server core edition whether it may be a standard edition or the datacenter edition you cant able to access the windows gui interface. But if you do some tweaks which was provided by the Microsoft itself we can convert the core edition of the windows server 2012 r2 to gui interface with some simple powershell commands. Actually we can call it as one of the options which was provided by the microsoft rather than calling it as a tweak. To convert the windows server 2012 r2 core edition to the gui we need the windows installation dvd to perform this task.
This tutorial includes some basic powershell commands to convert windows server 2012 r2 to GUI mode.
As the first step if you have windows server 2012 r2 core edition installed in your computer then you can easily convert windows server 2012 r2 to GUI using the below series of powershell commands. But before running these powershell commands you must have a valid windows server 2012 r2 dvd to access the winsxs directory.
To mount the windows server 2012 r2 dvd image to your existing operating system, you need to execute the below mentioned powershell commands.
Mount-WindowsImage -ImagePath D:sourcesinstall.wim -Path C:Mount-Image –Index:2 -readonly
Here D: is the dvd drive where you have your windows server 2012 r2 image file and after running this command you will see the Mount-Image folder in your C drive. After that you need to install another powershell command to convert windows server 2012 r2 to GUI mode.
Install-WindowsFeature Server-Gui-Mgmt-Infra,Server-Gui-Shell –Restart –Source c:Mount-PointWindowswinsxs
This is how you will convert Windows Server 2012 R2 core to GUI, and if you have installed the gui version of the windows server 2012 r2 then if you need to convert it to the core then you must uninstall 2 windows features using the powershell command as given below.
Uninstall-WindowsFeature Server-Gui-Mgmt-Infra,Server-Gui-Shell –Restart
After using this powershell command the server will restart and it will ask for your login credentials in the GUI mode but after giving your credentials there you can see only a command prompt without any GUI tools.
Note: You can switch over to the powershell console by just simply typing the below command
With the help of the powershell command this is how you will convert windows server 2012 r2 to GUI and vice verse. These commands may also be applicable to the Windows Server 2012 server.