Skip to content

Batch File or Script to completely remove any version of Java

Featured Replies

I'm looking for a smiple batch file or script that will completely uninstall and remove any version of Java. Any suggestions on what to use?

 

 

 

Thanks again! :D

  • 2 weeks later...

Hi Sothpaw,

 

You could try this batch file and edit it where you see fit

 

wmic product where "name like 'Java%%%'" call uninstall /nointeractive
wmic product where "name = 'java 7 update 1'" uninstall /nointeractive
wmic product where "name = 'java 7 update 2'" call uninstall /nointeractive
wmic product where "name = 'java 7 update 3'" call uninstall /nointeractive
wmic product where "name = 'java 7 update 4'" call uninstall /nointeractive
wmic product where "name = 'java 7 update 5'" call uninstall /nointeractive
wmic product where "name = 'java 7 update 6'" call uninstall /nointeractive
wmic product where "name = 'java 7 update 7'" call uninstall /nointeractive
wmic product where "name = 'java 7 update 8'" call uninstall /nointeractive
wmic product where "name = 'java 7 update 9'" call uninstall /nointeractive
wmic product where "name = 'java 7 update 10'" call uninstall /nointeractive
wmic product where "name = 'java 7 update 11'" call uninstall /nointeractive
wmic product where "name = 'java 7 update 12'" call uninstall /nointeractive
wmic product where "name = 'java 7 update 13'" call uninstall /nointeractive

  • 1 year later...

Southpaw. Muchos gracias! You have saved me valuable time. Java just came up with 8.25 and it didn't uninstall 7.67. Running the batch file to about 500 workstations!

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.