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]:
1 Answer
The .NET Uninstall Tooldotnet-core-uninstalllets 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