/build/static/layout/Breadcrumb_cap_w.png

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.

Thanks!


0 Comments   [ + ] Show comments

Answers (2)

Posted by: Nico_K 4 years ago
Red Belt
1

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

2Q==

Posted by: jlalla 4 years ago
White Belt
0

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

 
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