Custom inventory rule for All Java
Needing to remove Oracle Java from our environment. Does anyone have a custom inventory rule to identify machines with any version of Oracle Java installed on Win7/8/10 endpoints. And would also love to see any scripts that may remove said Java as well.
The query is not tested but the CIR should be something like:
ShellCommandTextReturn(cmd /c wmic product where "Name like 'Java%%'" get name,version)to uninstall you can run a script wit the following:
wmic product where "Name like 'Java%%'" call uninstall