/build/static/layout/Breadcrumb_cap_w.png

Running a batch script via Dell Kace.

Z7ky6L.jpegHi,

I am try to run the script as shown below. Basically what it does is that it will copy java properties file to user's c drive and run java silent installation via UNC path as shown below. It does not work. But the strange thing is that if I run the batch file locally on my computer it works perfectly fine. I had done similar things such as installing font via VBS using wscript command in my batch script. It works fine. But it does not work for this??? Strange isn't it? I run the batch file using a domain account which has rights to install and retrieve files from shared folder.


@ECHO OFF
xcopy "\\\Java\installjavaconfig.properties" "C:\" /Y
"\\\Java\jre-8u65-windows-i586.exe" INSTALLCFG="C:\installjavaconfig.properties"

6Y95IG.jpeg





0 Comments   [ + ] Show comments

Answers (2)

Posted by: SMal.tmcc 8 years ago
Red Belt
0
It could be that java needs to have access to a valid locallow directory (found in an active profile) when you run the script as your domain user it does not open a profile.  use an mi distribution by zipping both the config and exe up together and add that to the software item.  BTW java8u66 will be out shortly

https://blogs.oracle.com/thejavatutorials/entry/jdk_8u65_released

http://www.oracle.com/technetwork/java/javase/downloads/jre8-downloads-2133155.html
Posted by: tech@chch.org 8 years ago
Yellow Belt
0
Can you export the batch file to a log:  javainstall >c:\logs\javainstall.log
This would show you where it is failing.  You could also check the logs on the Kace for the script.  

Go to Inventory, machine name.  Scroll down to logs and then to scripting logs.  



 
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