Welcome to WebmasterWorld Guest from 54.227.157.163

Forum Moderators: bill

HowTo automatically logon/logoff Windows

     
12:49 am on Mar 28, 2019 (gmt 0)

Administrator from JP 

WebmasterWorld Administrator bill is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Oct 12, 2000
posts: 15148
votes: 170


I have a Windows VM that I need to login to a domain account at a certain time of the day, and then log off at a certain time. I need to schedule this for weekdays only. I was wondering if anyone might have a batch script or similar tool to accomplish this.

The VM and PC are always on, so there are no power-on events.
1:36 pm on Apr 15, 2019 (gmt 0)

Administrator from US 

WebmasterWorld Administrator brett_tabke is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Sept 21, 1999
posts:38250
votes: 109


Ever get this answered Bill? I was looking for something similar (a restart script) and solved it with a mouse macro (TinyTasks).
2:11 am on Apr 16, 2019 (gmt 0)

Administrator from JP 

WebmasterWorld Administrator bill is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Oct 12, 2000
posts: 15148
votes: 170


Well, I did find a non-free software that claims to do this (LogonExpert), but I didn't want to have to purchase something just for this task.

Would TinyTask work when not logged in to Windows? Logging off doesn't seem to be the issue...it's when logged out of Windows I wasn't able to easily figure out how to get my credentials into something that Windows would accept so I could get back in.
10:17 am on Apr 16, 2019 (gmt 0)

Administrator from US 

WebmasterWorld Administrator brett_tabke is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Sept 21, 1999
posts:38250
votes: 109


Well, I created a user with out a password and used that to login. (Sign-in options -> require sign-in -> Ck Never)
I used this guide: [auslogics.com...]
1:24 am on Apr 17, 2019 (gmt 0)

Administrator from JP 

WebmasterWorld Administrator bill is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Oct 12, 2000
posts: 15148
votes: 170


The domain for this account requires a Ctrl+Alt+Del action to log in, otherwise known as "Secure Login". The domain won't let me turn that off for Windows login. This has thwarted my efforts so far.

This is a Win7 VM, so I thought there might be some documentation out there to accomplish something like this. I realize that this goes against the domain security, but I have approval to try to find a work-around just for this instance. Normally I wouldn't be trying to subvert a security feature of a domain like this.
11:36 am on Apr 17, 2019 (gmt 0)

Administrator from US 

WebmasterWorld Administrator brett_tabke is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Sept 21, 1999
posts:38250
votes: 109


Ya, not familar with the domain login part. I bet you've been here: [online-tech-tips.com...]