Before I start I want to apologize if my english isn't 100% correct since it's not my main language.| So, here is my problem:
I have a Windows Server 2012 R2 server with the GUI removed. Including the payload. When I try to reinstall it it gives me an error that the source is incorrect. However I tried this too on a fresh server, uninstalled the gui, then peformed these steps and there it did work!
This is what I've tried:
Install-windowsfeature cmdlet
Install-windowsfeature cmdlet with install.wim as source
DISM with install.wim as source
Uninstalling all KB's and then trying all the above again.
I've tried the DISM with Install.wim as source on the test server and there it worked. However on the server with this issue it gets stuck at 67,6% and then fails saying it can't find a source.
This is how I did DISM:
<#Upgrade Windows Server 2012 R2 Core to GUI with ISO <# Make a folder for install.wim mkdir c:\w2012\image <# Copy the install.wim from the Windows Server 2012 R2 ISO to the machine copy $cd\sources\install.wim c:\w2012\image <# Retreive the name or index number of the image <# Server Standard is Index:2 <# Server Datacenter is Index:4 DISM /Get-ImageInfo /ImageFile:C:\w2012\image\install.wim <# Create a folder to mount the install.wim mkdir c:\w2012\mountpoint <# Mount install.wim in mountpoint DISM /Mount-Image /Imagefile:C:\w2012\image\install.wim /index:2 /MountDir:C:\w2012\mountpoint /readonly <# Upgrade to full GUI DISM /online /enable-feature /featurename:Server-Gui-Mgmt /featurename:Server-Gui-Shell /featurename:ServerCore-FullServer /source:C:\w2012\mountpoint\windows\winsxs <# done.
However I get the following error:
The source files could not be downloaded. Use the "source" option to specify the location of the files that are required to restore the feature. For more information on specifying a source location, see http://go.microsoft.com/fwlink/?LinkId=243077.
I have tried all different indexes but with no effect.
Also, a way to pull the configuration and paste it on a GUI server would also be nice, but upgrading it to GUI has priority. But if you know a way please let me know.
Dism /mount-wim /WimFile:<drive>:\sources\install.wim /Index:2 /MountDir:c:\isofiles /readonly
Install-WindowsFeature Server-Gui-Mgmt-Infra, Server-Gui-Shell –Restart -Restart –Source c:\ISOFiles\windows\winsxs