Go Premium for a chance to win a PS4. Enter to Win


Windows Server 2012 Core GUI Install Fails

Posted on 2013-05-09
Medium Priority
Last Modified: 2013-05-28
In an attempt to minimize overhead and increase security, I installed Server 2012 as a Server Core installation.  I promoted it to the first 2012 DC in our 2003 domain, but gave up on command line and powershell when it came to configuring DNS.  I want to install the GUI interface, but the command,

Install-WindowsFeature -source:D:\sources\sxs\ Server-Gui-Shell, Server-Gui-Mgmt-Infra
bombs out after 68% complete with the following:

Install-WindowsFeature : The request to add or remove features on the
specified server failed.
Installation of one or more roles, role services, or features failed.
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. Error: 0x800f0906
At line:1 char:1
+ Install-WindowsFeature -source:D:\sources\sxs\ Server-Gui-Shell, Server-Gui-Mgmt ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~    + CategoryInfo          : InvalidOperation: (@{Vhd=; Credent...Name=localhost}:PSObject) [Install-WindowsFeature], Exception
+ FullyQualifiedErrorId : DISMAPI_Error__Cbs_Download_Failure,Microsoft.Windows.ServerManager.Commands.AddWindowsFeatureCommand

After spending about 90 minutes on Google, this seems to be related to Windows Updates being performed after the installation, but no updates have been installed.  I wouldn't mind just starting over with a new install, but I cannot find info on how to demote this DC using just the core interface.

Thanks, in advance.
Question by:RAHopkinson
  • 3

Expert Comment

ID: 39154625

In the Install-WindowsFeature, the -SOURCE option usually refers to the path where the .WIM image file is (by default it is in \sources\install.wim on an ISO install media).
Check out the online doc on

Did you try to insert the DVD of W2012 Instal media in the drive and try to refer it in the command like:
install-windowsfeature -source X:\Sources\Install.WIM  ...  
 (where x: is the letter of your dvdrom drive) ?

Author Comment

ID: 39188215
Yes; in the command I used (Install-WindowsFeature -source:D:\sources\sxs\ Server-Gui-Shell, Server-Gui-Mgmt-Infra), D: is the CD-ROM drive letter, and \sources\sxs is the folder that contains the files necessary for the installation.

Accepted Solution

RAHopkinson earned 0 total points
ID: 39192696
I wound up opening a case with MS.  Took the engineer about an hour to fix, but here are the case notes for anyone else who finds themselves in this spot:

Step 1 : Provide the ISO to the machine
With the help of CMD enter the following

Dism /Get-WimInfo /WimFile:C:\mount\install.wim

It listed all the Indexes of the installation media

Step 2:
>> Select the Index for the version that you want to install
In our case it was the Index 1 was for Server Standard Full GUI

Step 3:
After that executed the following (where D: is the drive letter corresponding to the install media)

1.open an administrative command prompt
2.mkdir c:\mount
3.‘dism /mount-wim /wimfile:d:\sources\install.wim /index:1 /mountdir:c:\mount /readonly
4.powershell (enter PowerShell prompt)
5.install-windowsfeature server-gui-mgmt-infra,server-gui-shell –restart –source c:\mount\windows\winsxs

>> Reboot the machine

Step 4:
>> Dismounted the wim

Dism /Unmount-Wim /MountDir:C:\mount /discard

Step 5:
 If you want to revert back to Server Core version
Uninstall-WindowsFeature Server-GUI-Mgmt-Infra,Server-Gui-Shell –Restart

Step 6:
If you want to go to the Minimum Shell version of 2012
Uninstall-WindowsFeature Server-Gui-Shell –Restart

NOTE: Please have a look at the article to check the compatability of the application in different versions

Also, two other relevant articles:



Author Closing Comment

ID: 39200672
Found answer on my own

Featured Post

Problems using Powershell and Active Directory?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The article will show you how you can maintain a simple logfile of all Startup and Shutdown events on Windows servers and desktops with PowerShell. The script can be easily adapted into doing more like gracefully silencing/updating your monitoring s…
Restoring deleted objects in Active Directory has been a standard feature in Active Directory for many years, yet some admins may not know what is available.
This tutorial will walk an individual through the process of installing the necessary services and then configuring a Windows Server 2012 system as an iSCSI target. To install the necessary roles, go to Server Manager, and select Add Roles and Featu…
This tutorial will walk an individual through the process of installing of Data Protection Manager on a server running Windows Server 2012 R2, including the prerequisites. Microsoft .Net 3.5 is required. To install this feature, go to Server Manager…

886 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question