If you are experiencing the abovementioned Windows popup in your environment – the problem is that the machine is missing .NET 3.5 prerequisite. This cannot be installed without admin rights, so the users are usually bombarded with this popup each time they launch the affected application.

As a admin, you can of course install this via the popup, or from Control Panel by launching “Turn Windows features on or off” and selecting the .NET Framework option.

Enable the .NET Framework 3.5 in Control Panel

Programmatically, the fix is quite easy. It can be installed via single Powershell command:

Add-WindowsCapability -Online -Name NetFx3~~~~

The internet connectivity is required for this and might also require a computer restart after for the change to take place.
This short piece of code can also be easily deployed via Intune via the “Scripts” functionality or packaged.