Detecting that autologon has logged in...

Technical support and scripting issues

Moderators: JRL, Dorian (MJT support)

Post Reply
lmundy
Newbie
Posts: 5
Joined: Thu Feb 21, 2008 2:35 pm
Location: Parker, CO

Detecting that autologon has logged in...

Post by lmundy » Thu Feb 21, 2008 4:24 pm

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.
Lindsey

User avatar
Marcus Tettmar
Site Admin
Posts: 7395
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Post by Marcus Tettmar » Thu Feb 21, 2008 5:14 pm

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?

lmundy
Newbie
Posts: 5
Joined: Thu Feb 21, 2008 2:35 pm
Location: Parker, CO

Post by lmundy » Thu Feb 21, 2008 5:31 pm

Thanks Marcus, that's the behaviour I expected.

However, for some reason when the script completes it is just staying logged on. Is there something I need to put in the script to tell the scheduler service that the script has fininshed or any other things I need to check.

Lindsey
Lindsey

User avatar
Marcus Tettmar
Site Admin
Posts: 7395
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Post by Marcus Tettmar » Fri Feb 22, 2008 2:07 pm

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?

lmundy
Newbie
Posts: 5
Joined: Thu Feb 21, 2008 2:35 pm
Location: Parker, CO

Post by lmundy » Fri Feb 22, 2008 2:11 pm

The script is just a simple test that issues a message box, clicks OK end ends. The log file says "Finished Script: Test2" as the last line.

Lindsey
Lindsey

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts