/build/static/layout/Breadcrumb_cap_w.png

Scripting Question


Run a bat file in KACE1000 to remove JRE entries from Windows registry

08/24/2014 4200 views
Hello,

I found a bat script that will remove JRE registry entries to fix Java installation issue.

The bat script looks likes this:

reg query hklm\software\classes\installer\products /f "java(tm) 6" /s | find "HKEY_LOCAL_MACHINE" > deljava.txt

for /f "tokens=* delims= " %%a in (deljava.txt) do reg delete %%a /f

del deljava.txt

reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Runtime Environment" /f

reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\wow6432node\JavaSoft\Java Runtime Environment" /f

I want to deploy this bat file to clients experiencing the Java installation issue and i need this bat file to run silently so the user wont notice the DOS window popping up.

What command switch is needed to do this?

Or is it better to command the window to close by typing "Exit" at the end of this bat file?

Cheers!
Gage




0 Comments   [ + ] Show comments

Comments


All Answers

0
see
http://www.itninja.com/blog/view/how-to-hide-running-a-batch-file-from-a-kscript-with-version-5-5
Answered 08/25/2014 by: SMal.tmcc
Red 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