Skip to content

Instantly share code, notes, and snippets.

@rido-min
Created November 19, 2018 04:11
Show Gist options
  • Save rido-min/8574998f7966cfaf043af0bfc535b41b to your computer and use it in GitHub Desktop.
Save rido-min/8574998f7966cfaf043af0bfc535b41b to your computer and use it in GitHub Desktop.
Uninstall all dotnet SDKs
$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