/build/static/layout/Breadcrumb_cap_w.png

Uninstall all Java JRE

Years ago we scripted the installation of Java successfully on our K1000. Now we need to remove it from all workstations.

How can I uninstall Java using K1000?

I can't find a command-line switch, and the .cfg method doesn't seem to have an uninstall option. I find a bunch of old posts about this but they're convoluted and there doesn't seem to be an easy way to do this.


0 Comments   [ + ] Show comments

Answers (1)

Answer Summary:
Posted by: Nico_K 3 years ago
Red Belt
2

just run this one liner:

wmic product where "name like 'Java'" call uninstall /nointeractive

Comments:
  • I'm assuming you mean to run it as an online shell script? Attempts to do so (renaming it .bat instead of .sh) don't remove Java. The script says it's run successfully but Java is still on the target computer. Are there steps I'm missing or should I "run this one liner" in a different manner?

    Thank you in advance. We don't have a K1000 admin so this falls to me to try and figure stuff out - I appreciate any help you can offer. - ljg_gencode 3 years ago
    • you create a script (online script is a good idea)

      There are some variables used. Which ones are avaible can be found under the mario block (the little blue box with the question mark) next to Tasks (required)

      Create a new script and Use as Verify Step:
      Verify a Directory exists
      Fill in: $(KACE_SYS_DIR)

      On Success:
      Launch a program
      Directory $(KACE_SYS_DIR)
      file: cmd.exe
      check Wait for completion
      Parameters: /c wmic product where "name like 'Java'" call uninstall /nointeractive

      Now add the systems in question and a time when it needs to run.
      After the run of the script a check in needs to be done that the software uninstalls can be seen.

      I suggest to review https://support.quest.com/kb/258628/ too for the global topic.
      You anso can contact your sales rep for a quickstart course.


      More info ab - Nico_K 3 years ago
      • I tinkered with that a bit and got it to work by using this: /c wmic product where "name like 'Java 8%%'" call uninstall

        THANK YOU for your help, and with your patience in explaining the solution. :) - ljg_gencode 3 years ago

Don't be a Stranger!

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

Sign up! or login

Share

 
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