Scripting Question

Scripting Error -1 when running a batch file

07/03/2013 6791 views

I have a batch file setup to push Symantec Endpoint to both x86 and x64 systems. I found most of the info here: http://www.itninja.com/blog/view/how-to-deploy-the-symantec-endpoint-protection-client-12-1-from-the-kace-1000

I uploaded 2 files for the shell script and then created the batch file from kbox. Here is the code I found.

@echo off






It does find and install the correct software but displays failed in kbox.

Any ideas on how to correct this?

0 Comments   [ + ] Show comments


All Answers

This content is currently hidden from public view.
Reason: Removed by member request For more information, visit our FAQ's.

I think the way you have your batch file right now, it's running both setups on 64-bit machines.  Add a "GOTO :End" line in :64BIT, and of course ":End" at the very end of your batch file.  Otherwise when it's done running setup64.exe, there is nothing keeping it from continuing on in the batch file to run setup32.exe.

So it would look like this:




Answered 07/03/2013 by: nheyne
Red Belt

  • Rrr it won't format my response properly...hope you get the idea

Also since you are running a shell script make sure you are changing the "script file name" from .sh to .bat.

Answered 07/03/2013 by: dugullett
Red Belt


This works great but there is a problem now. I want it to be silent but there is a command prompt window that comes up. I found this online to make the window invisible:

Set WshShell = CreateObject("WScript.Shell")

WshShell.Run chr(34) & "batchfilename.bat" & Chr(34), 0

Set WshShell = Nothing

and have upoaded the batchfile and set the script to a vbs but it fails after the script is executed.

Answered 07/03/2013 by: bender6681
Orange Senior Belt

  • Just curious why you don't make this a managed install? Zip both installers along with your .bat file.
  • For some reason I couldn't get it to run the batch file that way . I'm not great at scripting.
    • Upload you zip file to your software record. When creating the MI select "Configure Manually", and in the box below that enter the name of your .cmd file. I also check mark "Delete Downloaded Files".
  • I'll give it a shot. I think I didn't have it as cmd but as bat.
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