Created
November 19, 2018 04:11
-
-
Save rido-min/8574998f7966cfaf043af0bfc535b41b to your computer and use it in GitHub Desktop.
Uninstall all dotnet SDKs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$app = Get-WmiObject -Class Win32_Product | Where-Object { | |
$_.Name -match "Microsoft .NET Core SDK" | |
} | |
Write-Host $app.Name | |
Write-Host $app.IdentifyingNumber | |
pushd $env:SYSTEMROOT\System32 | |
$app.identifyingnumber |% { Write-Host $_; Start-Process msiexec -wait -ArgumentList "/x $_ /quiet" } | |
popd |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment