Skip to content

Instantly share code, notes, and snippets.

@bihe
Created September 30, 2018 12:27
Show Gist options
  • Save bihe/33aa67499986b20be8cd1733441bee1c to your computer and use it in GitHub Desktop.
Save bihe/33aa67499986b20be8cd1733441bee1c to your computer and use it in GitHub Desktop.
Save the script of shanselman as a gist.
$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 |% { Start-Process msiexec -wait -ArgumentList "/x $_" }
popd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment