/build/static/layout/Breadcrumb_cap_w.png

Scripting Question


Custom inventory rule for All Java

02/14/2020 553 views

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

Comments



Community Chosen Answer

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==

Answered 02/15/2020 by: Nico_K
Red Belt

All Answers

0

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

Answered 02/18/2020 by: jlalla
White Belt

 
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