.NET Framework 3.5 fails to install with "The source files could not be found"
Issue
The .NET Framework 3.5 has been removed and cannot be installed without media.
PS C:\> Get-WindowsFeature *Framework*
Display Name Name Install State
------------ ---- -------------
[ ] .NET Framework 4.5 AS-NET-Framework Available
[ ] .NET Framework 3.5 Features NET-Framework-Features Available
[ ] .NET Framework 3.5 (includes .NET 2.0 and 3.0) NET-Framework-Core Removed
[X] .NET Framework 4.5 Features NET-Framework-45-Fea... Installed
[X] .NET Framework 4.5 NET-Framework-45-Core Installed
[ ] ASP.NET 4.5 NET-Framework-45-ASPNET Available
[ ] Windows Biometric Framework Biometric-Framework Available
Resolution
Either:
- Supply installation media (sources\sxs)
- Set the
Specify settings for optional component installation and component repair Group Policy
- Set
Specify settings for optional component installation and component repair in the registry
REG ADD "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\policies\Servicing" /V LocalSourcePath /D "" /T REG_EXPAND_SZ /F
REG ADD "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\policies\Servicing" /V RepairContentServerSource /D 2 /T REG_DWORD /F
Alternatively, pre install the feature from the source media to allow normal feature installation via Server Manager or PowerShell:
dism.exe /online /enable-feature /featurename:NetFX3 /All /Source:"\\server\share$\media\sources\sxs" /LimitAccess
References
Products
Microsoft Windows Server 2012 R2 (any)
Created: 8th December 2016
Updated: 9th December 2016
© 2005-2024 Jamie Morrison