PowerShell: Uninstall Java from Windows computers
Here’s a PowerShell script to uninstall Java from Windows computers. This script uses the Get-WmiObject cmdlet to find the Java application and the Invoke-Expression cmdlet to uninstall it. cmdlet to uninstall it. This script performs the following steps: You can run this script in a PowerShell window with administrative privileges.
Read more