/build/static/layout/Breadcrumb_cap_w.png

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

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

Answers (1)

Posted by: SMal.tmcc 9 years ago
Red Belt
0
see
http://www.itninja.com/blog/view/how-to-hide-running-a-batch-file-from-a-kscript-with-version-5-5

Don't be a Stranger!

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

Sign up! or login

View more:

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