Created
April 29, 2019 16:28
-
-
Save pmcfernandes/840fbd2d9664e60e168d6bc642c7cb04 to your computer and use it in GitHub Desktop.
This file contains hidden or 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