Q: How do I switch between Windows Server 2012 configuration levels using the command line?

A: The DISM command can be used to add and remove roles and features from the current OS or even an OS image.

This makes it a simple way to add and remove the features required to change the configuration level of Windows Server 2012 (formerly code-named Windows Server 8). Notice the feature names in DISM are different from those in Windows PowerShell.

From full server with GUI to Server Core, use this command:

 

Dism /online /disable-feature /featurename:ServerCore-FullServer

From Server Core to full server with GUI, use this command:

 

Dism /online /enable-feature /featurename:ServerCore-FullServer /featurename:Server-Gui-Shell /featurename:Server-Gui-Mgmt
Hide comments

Comments

  • Allowed HTML tags: <em> <strong> <blockquote> <br> <p>

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.
Publish