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
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)
Please log in to answer
Posted by:
SMal.tmcc
10 years ago