Created
June 17, 2016 06:25
-
-
Save arieljannai/647b2cca0a4f0a6f6838069edd8543ce to your computer and use it in GitHub Desktop.
Delete all java versions by oracle
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
# It's pretty slow, but works | |
Get-WmiObject -Class Win32_Product | Where-Object { $_.Name -match "Java" -and $_.Vendor -match "Oracle" } | ForEach-Object { $_.Uninstall() } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment