GPO – uninstall Java

Create the PowerShell script:

$app = Get-WmiObject -Class Win32_Product | Where-Object { $_.Name -match 'Java 8' } ; $app.Uninstall()

Create the GPO: uninstall-java:

Computer Configuration > Policies > Windows Settings > Scripts > Startup

Leave a Reply

Your email address will not be published. Required fields are marked *