• Welcome to Support Forum: Get Support for Patch My PC Products and Services.
 

Microsoft .NET - Clean Up of Unsupported Version

Started by shaun.silli, May 18, 2025, 11:03:57 PM

Previous topic - Next topic

shaun.silli

Hi All,

I've been tasked to clean up and remove unsupported version of Microsoft .NET from our fleet of computers currently we have 200+ critical vulnerabilities on our endpoint computers just with old version of .NET
 
I thought I could use the supersedence feature in Intune to remove older versions and replace them with the new version be this doesn't seem to be working, my guess is because they can run side by side of each other or the many ways .NET can be installed.

Just wondering if anyone else has run into a similar issue or knows of a better way to complete this task with automation at in mind and not manual-uninstalling it from each PC.

I have just finished writing a Detection/Remediation script for this but doesn't seem to be working 100% - Open to ideas or suggestions?

Nithin (Patch My PC)

Hey Shaun,

You may have already come across this, but Microsoft provides a cleanup utility specifically for uninstalling .NET SDKs and runtimes:

https://learn.microsoft.com/en-us/dotnet/core/additional-tools/uninstall-tool-overview?pivots=os-windows

The tool can only uninstall .NET SDKs and runtimes that were installed using one of the following methods:
Installed with a .NET SDK or .NET Runtime installer.
Installed by the Visual Studio Installer, but only for Visual Studio 2019 16.3 and earlier.


Additionally, we have a community script that may help streamline the uninstallation process: https://github.com/PatchMyPCTeam/Community-Scripts/tree/main/Uninstall/Pre-Uninstall/Uninstall-Software