I am trying to tweak some of my vbscript scripts to send status reports to the core to make troubleshooting easier. I know how to do it, but I am curious to know how/if there is a way to make it only send status updates to the core if the install was started by LANDesk. The only thing I can think of is to see if it's running as service or as a user. I want to have one install that can be done with LANDesk or manually, and have it report in if it's being done with LANDesk, but not if it's being run manually. Another question would be, what happens if you try to report in when it's run manually? I am guessing it does nothing, unless there is a current task running on the system.
(I'm running 9.0.2 if that matters)