Help Executing VB Script

(imported topic written by jcp_00791)

I have a VB script I want to run using the software dist. wizard. The script file works fine if I execute it from the local workstation, or from a network share. When I put into the wizard and try to execute it I get a cscript window on the workstation and it performs the desired renaming of files, but the window will not close and it will just hang there until I exit out of it. Any ideas?

I changed the final line to put the path to cscript.exe on the workstation. Here is what I have to work with.

extract DisableUSBvbs.tmp

wait “C:\WINDOWS\system32\cscript.exe” __download\disableUSB.vbs //B

Thanks

(imported comment written by BenKus)

Maybe it is something to do with the SYSTEM account? See http://forum.bigfix.com/viewtopic.php?id=1098

If you post the VBScript, we can take a look…

Ben

(imported comment written by pmullins91)

How about:

wait cmd.exe /c “C:\WINDOWS\system32\cscript.exe” __download\disableUSB.vbs //B