Windows Server 2012 (R2) – Turn GUI off or on

Windows Server 2012 (R2) can be migrated with a single reboot to a Server Core and back. This quite handy feature is mostly used on domain controllers or Hyper-V controllers, this way you can install and configure your server roles with an GUI interface and afterwards go back to the Core edition to require lower recourses and have a small attack surface. These commands only work if you have installed the server with the GUI, you can’t install the GUI if you have installed the core edition.

If you want more information about the Windows Server Core features: please visit this link http://technet.microsoft.com/en-us/library/dd184075.aspx 

You can turn off the GUI with the following PowerShell command:

Or turn the GUI back on if you want to modify something on your server with the following PowerShell command:

Don’t forget to reboot after running these commands succesfully.

This can be done with the following command:

 

2 thoughts on “Windows Server 2012 (R2) – Turn GUI off or on

  1. I would appreciate it if you would qualify this article. The only way the commands you provided work must be if you started with a server that had the GUI enabled. These commands do not work if you started with a Core image.

    • Bob, thanks for the notion. Never had that situation before, I will make a modification to the post so that it is clear for future readers.

Leave a Reply

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

*