Scripting Question

Install .net 3.5 on Windows 10

03/21/2018 3268 views

I was wondering if there was a way to use the CAB file for .net 3.5 and install is via the kace deployment as a post installation task

Kind Regards

0 Comments   [ + ] Show comments


Community Chosen Answer


We do this with a zipped file and batch file command.

We zip up the sxs folder for .NET 3.5 and the batch file command.

the command xcopies the sxs file to a local sources temp folder C:\ITTEMP\Sources\ (with /E /Y switches) for example.

after the copy is done, it runs a DISM command to install .NET 3.5 from the local source.

DISM.exe /Online /Enable-Feature /FeatureName:NetFx3 /All /LimitAccess /Source:C:\ITTemp\Sources\sxs

If you have any difficulty get that done.  This works very well for us.

Answered 03/21/2018 by: DaveMT
4th Degree Black Belt

  • We've done it in exactly the same way and it works like a charm.
  • This is how we have done this. With version 1809 we had to change up the DISM command to this Dism /Online /LogLevel:4 /Add-Package /PackagePath:c:\PATH\sources\sxs\microsoft-windows-netfx3-ondemand-package~31bf3856ad364e35~amd64~~.cab /NoRestart

    But now with version 1903 we can install .net 3.5, but anything that follows in my scripted install fails. Suggestions?

All Answers

I just run this command:
dism.exe /Online /Enable-Feature /FeatureName:NetFX3 /All /NoRestart

Answered 03/22/2018 by: chucksteel
Red Belt

This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ