I've looked through all of the responses here and discovered something very interesting.
Microsoft has a corrupt CAB online for Windows 10 Pro, and for possibly several other versions.
Here's my proof:
We are a volume license customer. I just downloaded the newer ISO of Windows 10. I installed this ISO to USB and installed Windows 10 on a laptop. The laptop works fine and there are no issues, except for using any of our programs that utilize .Net 3.5.
I used the command prompt DISM command that was recommended in this conversation after failing every other solution. Then, on a hunch, I started looking at the file it was trying to install. The installer uses a file called "microsoft-windows-netfx3-ondemand-package.cab"
in the X:\Sources\sxs folder. I tried to extract this CAB file with WINRAR and got an error that it was corrupt.
I then started following this train of thought by pulling down different versions of Windows 10. I luckily started with the Windows 10 Media Creation Tool and created an ISO from this. I pulled the SAME exact file "microsoft-windows-netfx3-ondemand-package.cab"
out of it and voila! Using the DISM command AGAIN against that file installed on the first shot.
Microsoft, you got some 'splaining to do here. Don't publish corrupt files to your update server or ISOs! Aren't you supposed to check these files?
So specifically, my fix was:
- Use the windows media creation tool to create an ISO of the install files.
- Open up the ISO with a third party tool like WINRAR or WINZIP.
- Pull out the "microsoft-windows-netfx3-ondemand-package.cab" file in the \Sources\sxs directory in the ISO and put it somewhere convenient.
- Run a command prompt with admin privileges and run: "Dism /online /enable-feature /featurename:NetFX3 /All /Source:X /LimitAccess" where X is the drive letter and path of the cab file.