The first thing to do is figure out how to call a Visual Basic script outside of the K1000 appliance environment.
On a command prompt, there is an executable in Windows called cscript.exe that can be used to run Visual Basic Scripts. It resides in C:\WINDOWS\system32 directory.
To run a script as a batch file (.bat), with credentials, create a batch file use the following syntax.
To prompt you for the password:
runas /user:username "cscript.exe //D \\avnwdc13\renameprof\install_service.vbs"
To include the password:
runas /user: username /password:password "cscript.exe //D \\avnwdc13\renameprof\install_service.vbs"
In the K1000 Environment:
The following example uses "Launch a program" in the K1000 appliance scripting to call a Visual Basic Script:
1. Launch “$(KACE_SYS_DIR)\cscript.exe” with params
Or create a batch file to call your script:
Remember to attach the actual vbs script file in the dependencies section.