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

Comments

Please log in to comment

Answers

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. 

Answered 04/15/2012 by: Aaron Cool
Red Belt

Please log in to comment
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"
Answered 04/16/2012 by: dchristian
Red Belt

Please log in to comment
Answer this question or Comment on this question for clarity