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.


0 Comments   [ + ] Show comments

Answers (2)

Posted by: Nico_K 4 years ago
Red Belt

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


Posted by: jlalla 4 years ago
White Belt

I presented this at KaceKon and seems to work well for people:  https://www.itninja.com/community/customer/file/31

Don't be a Stranger!

Sign up today to participate, stay informed, earn points and establish a reputation for yourself!

Sign up! or login

View more:


This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ