Is there any way to determine if the open windows session is the result of the scheduler service having performed an auto-logon. I want the script to logout at the end of the script using ShutDownWindows> 2, but not if the user has actiually logged in and is active.
I've checked all of the system variables to see if there was one that indiacted this but didn't see anything.
Any help appreciated.
Detecting that autologon has logged in...
Moderators: JRL, Dorian (MJT support)
- Marcus Tettmar
- Site Admin
- Posts: 7395
- Joined: Thu Sep 19, 2002 3:00 pm
- Location: Dorset, UK
- Contact:
You don't need to do that - if autologon logs on it will log off again when the script finishes.
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar
Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar
Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?
- Marcus Tettmar
- Site Admin
- Posts: 7395
- Joined: Thu Sep 19, 2002 3:00 pm
- Location: Dorset, UK
- Contact:
You shouldn't need to do anything special. It should just log out again. Is your script ending - no loops/delays preventing it complete?
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar
Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar
Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?