I wrote a script with a pop-up MessageBox() for user interaction and the script will be scheduled to run by "Scheduled Tasks". I found that the script will be suspend on memeory when no user logon on console (MessageBox() wait for a user interaction). The messagebox still not appear when I logon system. It seem to be run on other session and I can only terminate the script on Task Manager.

I want to know
- Can I check a user already logon system?
- Who already logon?

Thanks all.