I encountered this issue while working on a project for a client, involving server build automation.
The client provided me with a copy of their Windows Server 2012 R2 ISO, which I was using in my SCCM Build and Capture task sequence. As you can see from the screenshot, the Task Sequence includes copying the SXS folder onto the local system, in order to be able to install .NET Framework 3.5 (using the -Source parameter).
However, after the OS was installed, I noticed that the .NET Framework 3.5 and PowerShell options (which are also apart of the build) were not installed successfully. I checked, and confirmed that the SXS folder was still present (at the root of C:\). So, I attempted to run the PowerShell install command manually to see if/why it failed. I encountered the following error.
This was odd, since it worked for my Build and Capture of Windows Server 2012. So, off to Google with the error code, and I came across this TechNet article which explained everything:
In a nutshell, there was a Security Update that was released that updated some of the .NET components (KB2966828). According to the TechNet article “If either of these updates are installed, you will run into the above issue if your server does not have access to the Internet to pull the updated components.”
- Uninstalled the security update
- Install .Net Framework 3.5
- Reinstalled the update
Refer to the TechNet article for additional options/details. Hopefully this will help anyone that comes across this issue.