Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I have an application which automates my everyday task of logging into some website and doing repetetive actions. This app starts as a scheduled task everyday at 7.30am.

The problem arises when I have my machine restarted (rebooted) but forgot to log into my windows user account (it is password protected). So windows sits at logon screen and scheduled app won't start.

I'm awaer of these possible ways to solve it, but aren't complete to my needs:

1) I know of 'Run if user is not logged in' option in Task Scheduler. It will not help as I want it run in interactive mode. 2) I know of possible solution to enable Autologin for my user account by setting my login/pass in Registry. That would make it possible for everyone to access my computer.

So my question is: Is there any possible way of booting my windows user account Automatically, but keep screen locked? That way I keep all my wishes in place. My scheduled app will start properly and noone can access my computer until they log in.

I'm sure many people have stumpled on this issue. Please share your solutions guys.

share|improve this question
add comment

1 Answer

up vote 1 down vote accepted

I would use Autologon from Sysinternals to autologon, but add a scheduled task with a trigger (start at login) and enter this command in the task scheduler

Program: rundll32.exe and as parameters: user32.dll,LockWorkStation

and create the task. The rundll32 command locks the PC after the automatic logon. So you get your task running but the PC will be locked.

share|improve this answer
    
I didn't know about built-in windows feature to lock screen. And using it on logon is a great idea. Thank you! –  user236086 Jul 6 '13 at 10:40
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.