Anyone have a PowerShell script to install the latest .NET and Visual C++ Redistributable versions?

0
7
Asked By TechieGuru93 On

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

Answered By CodeWizard42 On

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!

TechieGuru93 -

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

Related Questions

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.