Get the App
SLTechnology News&Howtos  ›  Servers  › 

Use the DISM command to install the GUI interface of Server2012

Shulou Source: shulou.com Published: 2022-06-02 17:10:00 09月22日 Update

Today, there were some problems in installing Exchange in the test environment. After installing the pre-required components, the restart was required to take effect, and after the restart, it was found that the state still required to restart, because the components were all installed with Powershell at one time, so I couldn't figure out which component had a problem with installation, so I just started all over again. As a result, the Powershell command was misused, used as remove-windowsfeature, deleted all the related files of the component, and the system became the core version after rebooting. There was only one command line window. Try to install the components back with Powershell, as a result, the powershell is gone. Go to the file path of Powershell and check it out. As a result, there are no files under the windowspowershel/v1.0/ directory.

Well, we can only use the dism command to figure it out, so all kinds of Baidu google finally found the command to solve the problem.

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

Note: the last / all parameter is very important, this parameter will automatically install the pre-requirements of several windowsfeature you specify. Without this parameter, an error will be reported when running the command, requiring you to install the parent function component.

After the execution of the command, restart the server, and finally my GUI interface is back, Thanks god!

Tags: Commands components parameters files results problems interfaces no clear important one-time methods functions only time server core state environment directory Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Shulou Tech Info Docker macOS NVidia Shulou Technology