I would like to create a task to either copy a file (a VB script file) to the local drive of the client, or have a task to execute a VB script. Right now I’m using appendfile to create a temp file then executing it and that’s rather a pain. Is that the best/only way to execute a VB script? If so how can I just take the file from a network share and copy it to the local C drive then execute it?
Basically I want to copy a VB script file to the C drive, then run = waithidden cmd.exe /c cscript c:\copiedVBscript.vbs
wait “{pathname of client folder of site “BESSupport” & “\RunQuiet.exe”}” “{pathname of system folder & “\cscript.exe”}” “__download\smssiteportswitch.vbs”
Note that your BES server is a web server. You can just cache the files somewhere in wwwrootbes folder on the server to make them accessible over http. It would look something like this:
I used the Windows Software Distribution Wizard to copy the file to the server and create the task. It creates the sha1 etc for you and now that task works great!