Thursday, February 16, 2012

Auto Logon & Lock Screen in Windows 7

At the start of the day in office at around 8.30AM, I do this every day:

1. Boot up Windows

2. Login (i.e enter Username & Password)

3. Launch Outlook

4. Launch SUN VIRTUAL BOX (boot up Ubuntu)

5. Netbeans/other tools that I may or may not need

6. Lock Screen, and then head straight to the cafe to get a cup of Coffee :D

So, I was very much in need to automating steps 1-6. Just power on my laptop and all the above steps should take care of itself.

After searching on Google, I came across quite a few sites which showed how this can be done.

Anyway, here is what you need to do to Automatically login with a specific user & Lock the screen (keeping in mind that you want to run a few apps right after login, and then lock the screen - launching the apps is asynchronous i.e screen gets locked, while the apps starts loading).

Create a shortcut on your desktop and point it to:

C:\Windows\System32\rundll32.exe user32.dll,LockWorkStation

Now place that shortcut/icon inside

Start > All Programs > Startup

That should take care of automatically locking the screen.
Now, what ever apps what you would like to launch after you log into the system (ex: Outlook or Office Communicator), place those apps inside the "Startup" folder.
Now to automatically logon with a specific user, goto >>
Start > Run

And type:
netplwiz

There you will see a list of users. Choose the user who would want to actually automatically logon and *Uncheck* "User must enter a user name and password to use this computer."

That should do it !

No comments :

Post a Comment