Kamikaze

Auto-Login and Lock your Windows 7 PC

by aadhu on Jun.01, 2009, under How-To's, Microsoft, Tips n Tricks

Like most of you I have a few applications running on my computer startup (utorrent and such…). Mind you you shouldn’t have too many applications running on startup tho. :) There are times (if i had a penny for everytime….) that I startup my computer and then forget to login (something just comes up..) and return (sumtimes after a couple of hours) to find <--insert your fav movie/series here--> still hasn’t finished just because I forgot to login. Sounds familiar eh.

So let me show you how to setup your computer to Auto-Login (this will work for almost all versions of Windows):

  1. First you need to start Advanced User Accounts Control Panel
    1. In Windows 2000/XP/Server 2003

    2. Click Start, and then click Run.
    3. Type control userpasswords2 (control userpasswords in Win 2000) in the Open box, and then click OK.
      In Windows Vista/Server 2008/Windows 7

    1. Click Start, (Or Window Key + R in Windows 7)
    2. Type control userpasswords2 or netplwiz in the Start Search or Run box, and then press ENTER.
  2. In the User Accounts (Users and Passwords in Win2000) dialog box, on the Users tab, click to clear the Users must enter a user name and password to use this computer check box, and then click OK.
  3. In the Automatically Log On dialog box, type the user name and password to be used for automatic logon in the User name and Password boxes respectively, type the password again in the Confirm Password box, and then click OK.
  4. Click OK to close the User Accounts (Users and Passwords in Win 2000) dialog box.

So now that you have your PC Login you in automatically at Startup. Lets make things a little secure by having it Lock the Computer Automatically After Login:

  1. Go to Start, or Press Windows Key+R to bring up the Run box
  2. Type Regedit and click enter to open Windows Registry Editor
  3. Go to [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run]
  4. Right click, and make a New->String Value
  5. Call it “AutoLock” (or whatever you want)
  6. Double Click on the Newly Created String Value (Right click, and Modify works as well)
  7. Enter the value: rundll32.exe user32.dll,LockWorkStation
  8. Click OK, Close Regedit and you’re done (Restart the PC to check if you want)

Now if you don’t want to mess around in the registry there is another way to do this by creating a a new shortcut in Programs->Startup and giving “%windir%\System32\rundll32.exe user32.dll,LockWorkStation” as the location (without the ” ” quotes and making sure there are no trailing spaces at the begining and end).

Hope this helps.



2 Comments for this entry

Leave a Reply

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!