I'm looking for a PowerShell script that automatically installs the Microsoft suite of .NET runtimes, desktop runtimes, and the Visual C++ Redistributable applications. My vulnerability management tool keeps flagging older versions of these programs as high-critical vulnerabilities, which tend to linger for a while. I've created a script to uninstall older versions while keeping the newest one, but some users might still have outdated versions. Running my script could cause issues for them. I thought about using a web request to download and install the latest versions, but I'm having trouble getting that to work. I'd appreciate any insights or examples of how to tackle this. Thanks!
1 Answer
Have you thought about using `winget` to target those applications? It could simplify the installation process for you since it handles dependencies well. Just ensure that your users have `winget` installed on their machines to make this effective!

I would need to install `winget` on all user machines first, which is quite a task for over 1000 users. Any other suggestions?