VBScript not executing after it is unzipped in the correct directory.
Those are the parameters that I am using to run the script. It works fine until it gets to step number 2. It will not run it. If I check the directory both the zipped and unzipped file are in there. The script works fine if I run it from there. Please help!
8 Comments
[ + ] Show comments
Answers (0)
Please log in to answer
Be the first to answer this question
launch a program
location $(kace_dependency_dir)
file wscript.exe
wait for completion
yourscript.vbs
I use this exact method for all of my simple scripts and it works without issue. Also are you using Run Now or scheduling? What errors are you getting in the logs? - areiner 10 years ago
Running as: SYSTEM
Error creating process: C:\Windows\System32\wscript.exe uninstallkiosk.vbs: (1) Incorrect function.
Activity Log
Checking if file exists: C:\windows\system32\msiexec.exe
Launching program: 'C:\Windows\System32\wscript.exe' 'uninstallkiosk.vbs' wait='true'
those are the errors I am getting. - ceasar.trejo 10 years ago