Core to MinShell

Create a folder to mount a Windows Imaging File (WIM) in with the command mkdir c:\mountdir

Determine the index number for Server Datacenter using this command at an elevated command prompt: Dism /get-wiminfo /wimfile::\sources\install.wim

Mount the WIM file using this command at an elevated command prompt:

Dism /mount-wim /WimFile::\sources\install.wim /Index:<#\_from\_step_2> /MountDir:c:\mountdir /readonly

Then run your PowerShell command - Install-WindowsFeature Server-Gui-Mgmt-Infra –Restart –Source c:\mountdir\windows\winsxs

ps. Просто надоело это искать раз в год 😉

Written on August 20, 2015