Created
September 30, 2018 12:27
-
-
Save bihe/33aa67499986b20be8cd1733441bee1c to your computer and use it in GitHub Desktop.
Save the script of shanselman as a gist.
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 |% { 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