Mkdir c:\mountdir
Dism /get-wiminfo /wimfile:d:sources\install.wim
Dism /mount-wim /wimfile:d:\sources\install.wim /index:4/mountdir:c:\mountdir /readonly
Dism /online /get-features
Dism /online /enable-feature/featurename:microsoftwindowspowershell
Install-windowsfeatureserver-gui-mgmt-infra,server-gui-shell –restart –source c:\mountdir\windows\winsxs
转载于:https://blog.51cto.com/jerkou/1352153