/build/static/layout/Breadcrumb_cap_w.png

VBS script in a zip file on K1000

I have a script that I use as part of my Kace 2000 deployments that works great to change the computer description by querying the serial number, looking up the asset on the K1000 and returning the appropriate name.

On the K2000 the VBS file is contained with a zip file due to some other files in the same zip folder (but within subfolders of it) that it is dependent on.

I would like to put this script on the K1000 to run it against existing machines.  I can't seem to find any directions on how to do this.  If it were a standalone vbs script, not part of a zip, that would work fine, but since it needs the files in the other folders that are part of the zip file, it won't work in this case.

Any advice?


0 Comments   [ + ] Show comments

Answers (2)

Posted by: Aaron Cool 11 years ago
Red Belt
1

On the K1000, go to Scripting>Scripts> Add a New Script 

Since your VBs script needs a couple of supporting files, look for Dependencies: Choose File and Add each file independently. These files will be downloaded by the script and will be available when the script runs. 

Then you can specify Task 1 with Verify, On Success, Remediation, On Remediation Success and On Remediation Failure. 

Posted by: dchristian 11 years ago
Red Belt
1

An easy way to do this is:

  • Add a new script
  • Choose shell script
  • Add your vbs as a a dependency
  • Command line is "cscript.exe yourscript.vbs"
  • change script name from "script.sh" to "script.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