Hello,
I try to install the Windows Feature "NET-Framework-Core" on a clean Windows Server 2012 R2 computer. I use the following command for this:
Install-WindowsFeature -Name NET-Framework-Features -Source "\\SERVER01\2012R2\sources\sxs"
This fails with the following error:
--------------------------------------------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 -Name NET-Framework-Features -Source "\\SERVER01\2012R2 ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (@{Vhd=; Credent...Name=localhost}:PSObject) [Install-WindowsFeature],
Exception
+ FullyQualifiedErrorId : DISMAPI_Error__Cbs_Download_Failure,Microsoft.Windows.ServerManager.Commands.AddWindowsF
eatureCommand
--------------------------------------------
My account is Domain Admin and PowerShell is started in elevated Mode. Also the computer account has full control permissions on the share. When I install this feature form a local disk, it works. I use the following command:
Install-WindowsFeature -Name NET-Framework-Features -Source "D:\2012R2\sources\sxs"
After this, I restart the computer, remove the feature (Remove-WindowsFeature), restart the computer again and then... I install the same feature again with the first command, so from a network share. Now it does work! Can some please explain this behavior? Installing this feature from a share should work out of the box, right?