VBScript to Run a Particular SWD Task
On a recent forum thread, WilliamK asked how to run a known Software Delivery task from the command line. As far as I know there is no built-in functionality around that, so I build out a VBScript "Sub" we use internally to run a particular Inventory task to create a little script that will do as requested. You do have to pass the Task/Advertisement GUID on the command line (with or without { and } around it) and it traps for basic usage error (i.e. no GUID). Also if the SWD bulletin specified is invalid it will indicate that as well. Hopefully this is helpful to someone else out there.
Nice
Many beginning admins will find this extrenly useful. I am sure this will get quite a bit of traffic.
I hope so!
I hope it is useful to people. As I said we use a much cut-down version of this to trigger a daily inventory after an installation package runs, but you can really use it to kick off any advertisement assigned to the machine.
I also created another variation of this we call "the loader" that drops a script on the machine, and a desktop icon that points to that script. When you run the icon/script, it kicks off the Altiris task specified. We used this for our Office 2007 rollout as we didn't want to force it on anyone, but wanted to give them an easy method to run the install when they were ready. The nice side effects are you keep the user out of the Altiris Agent interface, and it works for non-admin users (as long as they can run the script).
Thanks,
Kyle
Symantec Trusted Advisor
If your question has been resolved, please be sure to click "Mark as Solution"! Thank you.
Would you like to reply?
Login or Register to post your comment.