Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
up vote 3 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

Your Answer


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.