Silently Uninstall. Net Framework on Windows Server Using Any Script

Silently Uninstall. Net Framework on Windows Server Using Any Script

I need a method which uninstalls .net framework SDK and runtime versions(preferably 4.5 or lower version) without user interaction from windows servers. msiexec /x /qr is unsuitable because it puts up a confirmation dialogue which i dont want. Also i tried using .NET Uninstall Tool (dotnet-core-uninstall) . i install it first on server then run dotnet-core-uninstall list --sdk. But it is not giving me any sdk list while my server has sdks(screen shot attached). I need to uninstall it from 100+ server , so i need an automated way which i can trigger on multiple server(may be remotely). Thanks in advance. [command result][1] [1]:

8

1 Answer

The .NET Uninstall Tool dotnet-core-uninstall lets you remove .NET SDKs and Runtimes from a system. Its options can specify which versions you want to uninstall.

You may use the following parameters:

  • --sdk
    Lists all .NET SDKs that can be uninstalled with this tool.

The tool's usage is explained in detail in the Microsoft article .NET Uninstall Tool.

34

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

David Miller
Author

David Miller

David Miller brings 15 years of experience in global economics, personal finance strategy, and market dynamics. He specializes in turning complex economic trends into actionable insights for everyday readers.