Deploy .NET Framework 3.5 via GPO
Quick one today. If you find yourself in a situation where an application requires .NET 3.5 in order to get it installed, this will help you.
1. Create a batch file (*.bat) with the following script
@ECHO OFF @DISM /Online /Enable-Feature /FeatureName:NetFx3 /All
2. Create a new Group Policy Object in Group Policy Management
3. Head into Computer Configuration > Policies > Windows Settings > Scripts (Startup/Shutdown) and add your script (make sure it is located in a folder that is accessible by all workstations, e. g. \\”domain FQDN”\SYSVOL\”domain FQDN”\Policies\”Folder of new GPO”)
4. Once linked to the proper workstation OU, upon reboot, .NET 3.5 will automatically be installed
Alternatively this can also be deployed via a RMM tool or ran manually on each machine. A reboot after the install of .NET 3.5 is NOT required.