https://support.microsoft.com/en-us/kb/2913316
Consider the following scenario:
- You have a computer that's running Windows Server 2012 R2.
- The computer is running the Server Core installation option.
- The Server Core option was installed by using Volume Licensing media that doesn't have access to Windows Update.
Error: 0x800f081f
The source files could not be found.
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.
To resolve this problem, use one of the following methods.
Method 1: Connect to the Internet
If the server can connect to Windows Update for the feature installation, let the server make the connection.Method 2: Use Windows Server 2012 R2 installation media
If the server cannot connect to Windows Update, download the new Volume Licening media (released on December 11, 2013) and use the Install-WindowsFeature PowerShell command. To do this, follow these steps:- Insert the updated Windows Server 2012 R2 DVD into the computer's DVD drive or in a VM mount the media DVD.
- Type the following command to determine the index number that's required for steps 3 and 4.
Dism /get-wiminfo /wimfile:<drive>:\sources\install.wim
Example output from the DISM command:Index : 1 Name : Windows Server 2012 R2 SERVERSTANDARDCORE Description : Windows Server 2012 R2 SERVERSTANDARDCORE Size : 6,653,342,051 bytes Index : 2 Name : Windows Server 2012 R2 SERVERSTANDARD Description : Windows Server 2012 R2 SERVERSTANDARD Size : 11,807,528,410 bytes Index : 3 Name : Windows Server 2012 R2 SERVERDATACENTERCORE Description : Windows Server 2012 R2 SERVERDATACENTERCORE Size : 6,653,031,430 bytes Index : 4 Name : Windows Server 2012 R2 SERVERDATACENTER Description : Windows Server 2012 R2 SERVERDATACENTER Size : 11,809,495,151 bytes
- Open a PowerShell command prompt by typing the following command:
Powershell.exe
- Type
the following PowerShell command, in which <drive> represents the
location of the Windows Server 2012 R2 installation files and
<index> represents the numbered index from step 2:
Install-WindowsFeature Server-Gui-Mgmt-Infra,Server-Gui-Shell –Source wim:<drive>:\sources\install.wim:<index>
Install-WindowsFeature Server-Gui-Mgmt-Infra,Server-Gui-Shell –Source wim:f:\sources\install.wim:4