Tuesday, January 15, 2013 7:52 AM
I have a .vhdx file which is installed as a Windows Server 2012 ServerDataCenterCore, and I want to install GUI on it.
I mount an ISO and run "dism /get-wiminfo /wimfile:E:\sources\install.wim" to get the information of install.wim. Since my offline VHDX has ServerDataCenterCore installed, I think I should choose ServerDataCenter (index:4) edition to install the Server-Gui-* features.
I try to use the install.wim directly, so I run install-windowsfeature server-gui-mgmt-infra, server-gui-shell -vhd 'C:\test.vhdx' -source 'wim:E:\sources\install.wim:4'. Unfortunately, I get stuck at 45% and fail with error 'the source files could not be found':
But if I mount the install.wim first and then run install-windowsfeature server-gui-mgmt-infra, server-gui-shell -vhd 'C:\test.vhdx' -source C:\mountdir\windows\winSxS, I can finish the installation successfully.
More, I try some other features, like ADLDS. Strangely, I can install them successfully using the WIM directly.
Why cannot I install the Server-Gui-* features using WIM directly? Have I done something wrong?
- Edited by Ross Gao Tuesday, January 15, 2013 7:53 AM
Thursday, January 17, 2013 6:06 AMModerator
I would like suggest you go through the below two similar threads for more information:
PowerShell to Add GUI to Server Core (ServerCore-FullServer)
Conversion Between Windows Server 2012 Installation Options
TechNet Community Support
Tuesday, January 22, 2013 8:11 AM
Thanks, they are close, but not what I need.
The second thread is right my workaround. I have tried to install the features using a mounted install.wim and I succeeded.
But if I use a .wim without mounting it, I will fail sometime.
If I run install-windowsfeature server-gui-mgmt-infra -vhd 'C:\test.vhdx' -source 'wim:E:\sources\install.wim:4, It fail with error 'the source files could not be found'
But if I run install-windowsfeature ADLDS -vhd 'C:\test.vhdx' -source 'wim:E:\sources\install.wim:4, it works fine.