Today, after installing windows server 2012, there is only a command line, and I found that there is no desktop. Then, after being reminded by others, I found out that I forgot to install the gui. At this time, I was lazy to reinstall it, so I searched the Internet to find a way to solve the problem. The following is the solution.
dism /online /enable-feature /all /featurename:servercore-fullserver /featurename:server-gui-shell /featurename:server-gui-mgmt
Make up a command to reinstall the gui. (This scenario is currently only certified for VM14 virtual machines)