The Window 2012 R2 system turns on the function of GUI from no command line configuration to realize the graphical interface of the operating system.
Today, I found that the remote desktop screen of 2012 operating system was black. After rebooting, I found that I could only see the CMD command line. It feels like the WINDOW version has become a GUI-free version. After the windows 2012 R2 system is rebooted, there is still only a CMD command window, no graphical interface, and all the rest are black except cmd. The solution is simple: you don't have to reinstall the system, you just need a command in cmd. Enter the following in cmd, and then press enter.
Dism / online / enable-feature / all / featurename:servercore-fullserver / featurename:server-gui-shell / featurename:server-gui-mgmt
After pressing the enter key, there is no need to turn off anything. After a while, the system will restart automatically. After restarting, entering the system will be a graphical interface. Enter the relevant commands of the above dism directly on the CMD command line, as shown below:
During the execution process, as shown in the following figure, there will be a progress bar that will automatically go down.
Finally, it is prompted to restart. We follow the prompts to select "Y", the system will restart, after the restart can restore the GUI function.