Set a script to only run while logged off
I wanted to know if there was a way to create a kbox script that will only run on a computer if it is logged off. The situation is that I will be implementing Kbox Patching for Windows XP machines on our network and some of these computers run 24/7. I want to WOL all shutdown computers running a patching job and have the job end at a specific time. Sometime after the patching job is complete, I want to have the machine shutdown the computer but only if the computer is in a logged off state. If the computer is logged on I don't want it to shutdown via this script. Any ideas on how to create a kbox script or know of a different way to accomplish my goals would be great.
so that the conversation will remain readable.