Oh my god!!!!!!!!!!!!!!! KACE documentation is so frustrating!!!!!!! 

I hate it so much!!!!

All I want to do is to run a VBScript as a post install task, I look in the KB articles and can't find a simple guide on the process.  I see 1 document showing an people in questions talking about it, but nothing that goes through the process (or variety of processes). 

I called support, they said I needed to put cscript in front of my parameter calling the vbs file (post install type is a windows script, no idea if that is correct as there seems to be no documentation).  I uploaded the vbs file and have "cscript file.vbs" (no quotes) in the parameters field.  I synced the change to the local RSA, kicked the deployment off to test and get the error message "Windows cannot find 'csript file.vbs'. Make sure you typed the name correctly, and then try again.


2 Comments   [ + ] Show Comments

Comments

  • Hello Vivalo,

    It looks like you might have a typ0. you need to have "cscript" the a space then the path and name of your vbs file.

    An example would be: "cscript C:\temp\install.vbs"
    • I have a space. But there isn't a path to the file, just the file name of the uploaded file.

      Quest Support said it looked fine but it fails as I said.

      Was finally able to speak to another support rep who said I should package in a zip file along with a bat file to call the vb script file in a similar manner to how I do for powershell scripts. I will test and reply back.
  • We do this for joining PCs by attaching the VBS Script to the task, then in the parameter we have cscript join_domain.vbs [domain] [adusername] [aduserpassword]

    However the adusername/aduserpassword is not needed if it is a local only script and does not need access to the domain.
Please log in to comment

Answers

2
Vivalo,

Sorry you are having issues.  There are several ways a vbs can be run as a post install task.

The easiest is to do a Windows Script postinstall task.  You just upload your vbs file, that is it.  This works great if your script does not require parameters.   The other suggestions you mention should work as an application post install task.  If you do it this way, check out the example join domain windows task that comes on the box.
Answered 04/08/2017 by: cserrins
Red Belt

  • Hi Corey, sorry, just frustrated that I couldn't find this info in any admin guides.

    I will try that method too (seems deceptively simple).
  • Turns out in the end that method isn't working too. The only way I can make it run is to make a batch file that runs "cscript file.vbs" and zip the batch and vbs files together uploading as an application post install task and in the parameter call the batch file.
    • If it isn't a sensitive script file, can you email it to me? My email is in my profile. Thanks.
Please log in to comment
Answer this question or Comment on this question for clarity