«•»


Tweak: Auto-login on Startup & Lock PC Immediately

Date May 11, 2008 : Permalink :

Update: Works on Windows 7 as well.

This tweak initiates the User’s logon/startup sequence before locking Windows 7/Vista/XP; thus, speeding up the OS startup process while maintaining the security provided by the login screen.

What it solves: Traditionally, you turn on your computer and wait a few minutes. Then, you log into windows and wait a few more minutes. This tweak eliminates that wasted time by allowing you to turn on your computer, go work on something else for a few minutes, come back, login and begin working immediately because your profile and startup programs have already loaded! It is particularly useful for people who are the sole or primary user of their PC and use the login screen purely as a security mechanism.

I couldn’t find a streamlined step-by-step guide online so I figured I’d put one together myself.  Sources are credited below.

Step 1: Auto-Login on Startup.1

  1. In Vista/7, Click Start, type netplwiz in the search field, and hit Enter.
    In XP, Click Start, click Run, type control userpasswords2
    (This loads the Advanced User Accounts control panel).
  2. Uncheck the Users must enter a user name and password to use this computer option.
  3. Click Apply.
  4. Enter your password into the Automatically Log On dialog box that pops up and click “OK“.

Step 2: Lock PC Immediately after Login.2

  1. Click Start -> All Programs, right-click on the Startup folder, and select Open.
  2. The Explorer Window opens. Right-click in the whitespace and point to New and click Shortcut.
  3. The Create Shortcut Wizard opens. In the text box, type the following:
    rundll32.exe user32.dll,LockWorkStation
  4. Click Next.
  5. Enter a name for the shortcut (e.g., “Lock Workstation“).
  6. Click Finish.

Step 3: Reboot.

Step 4: Enable Power-On Security.

  1. Please view your BIOS Security options and enable the power-on password feature. Otherwise, you run the risk of allowing someone to boot to safemode without any password access (as pointed out by a commenter).
  1. about.com – Source of Auto-Login steps. []
  2. microsoft.com – Source for Lock PC steps. []
  • http://test.com test

    test post

  • http://test.com test

    test2

  • FrugalPCowner

    This is a great time-saving and security tip for Vista! With it, a user can get all services started and the PC fully operational without having to come back to the PC to login initially and then wait to have all of these services load. Locking the PC immediately on boot-up is a very important consideration for security, to keep others out that should not have access to the PC, and it good that you included it. I copied the shortcut of locking the PC to my Desktop as well to give me a quick and easy way to lock my PC if I want to step away from my PC without leaving it exposed to someone else accessing it. Just as a note, "Login automatically and Lock PC immediately in Vista" would have been a better title for your tip that would allow search engines to find it and rank it higher when a user searches for this topic.

  • FrugalPCowner

    This is a great time-saving and security tip for Vista! With it, a user can get all services started and the PC fully operational without having to come back to the PC to login initially and then wait to have all of these services load. Locking the PC immediately on boot-up is a very important consideration for security, to keep others out that should not have access to the PC, and it good that you included it. I copied the shortcut of locking the PC to my Desktop as well to give me a quick and easy way to lock my PC if I want to step away from my PC without leaving it exposed to someone else accessing it. Just as a note, "Login automatically and Lock PC immediately in Vista" would have been a better title for your tip that would allow search engines to find it and rank it higher when a user searches for this topic.

  • Panos

    Thank you very much.
    I think this is not for Vista home because mine does not work.

  • Panos

    Thank you very much.
    I think this is not for Vista home because mine does not work.

  • frozen

    Thanks
    helped alot

  • frozen

    Thanks
    helped alot

  • Giacomo

    I was just looking for a way to lock my pc when going away from my desk. This solution is great and clean. Thanks a lot for posting it.

  • Gonzales

    There is a security risk involved here: if somebody boots the computer in safe mode the start-up files are disabled and so the computer will automatically log in (eventually to your admin profile) but it will not lock. Any idea how to fix this?

  • http://www.opindian.com ahpatel

    Using a boot-time password would alleviate this security risk because it would require a password before presenting an option to enter safemode.

    Thanks for the comment. I'll update the post to address this.

  • Gonzales

    Not sure if safe-mode boot can be controled via BIOS security as it is 'Windows' Safe-mode … F8 key pressing or interrupting a normal boot will automatically show “Safe-mode” as an windows boot option. :(

  • http://www.facebook.com/people/Anish-Patel/11827028 Anish Patel

    So, on my Lenovo T60p, there is a BIOS option called “power-on password”. This means that as soon as I hit the power button, I’m presented with a password field. Without entering the correct password, I can’t access the BIOS or even boot from device/disk (so, no OS can be loaded w/o a pw; hence, no ability to hit F8 to get the Windows options).

  • http://opindian.com/blog/ ahpatel

    So, on my Lenovo T60p, there is a BIOS option called “power-on password”. This means that as soon as I hit the power button, I’m presented with a password field. Without entering the correct password, I can’t access the BIOS or even boot from device/disk (so, no OS can be loaded w/o a pw; hence, no ability to hit F8 to get the Windows options).

  • http://www.opindian.com ahpatel

    So, on my Lenovo T60p, there is a BIOS option called “power-on password”. This means that as soon as I hit the power button, I'm presented with a password field. Without entering the correct password, I can't access the BIOS or even boot from device/disk (so, no OS can be loaded w/o a pw; hence, no ability to hit F8 to get the Windows options).

  • Gonzales

    Oh, I now understand your reply and you are right, but this bios feature is not available for any BIOS.

    Anyway, with BIOS password you only move the login option from the OS log-in to the BIOS log-in, but still have to log-in before your programs are loaded.

    Using this BIOS login you can as well disable Windows Login and only lock computer at start-up.

    Also using BIOS password you cannot schedule your computer to automatically boot up at a specific time and have everything waiting for you when you sit in front of your desk ;)

  • http://www.opindian.com ahpatel

    The solution I posted, combined with a BIOS pw, resolves the wait-time issue by putting the pw prompt at the beginning of the process instead of in the middle of it.

    The only thing I can think of to securely get around your use case is to put your computer in a hibernation state rather than shutting it down. Is that an option?

    Let me know if you come up with anything.

  • http://www.opindian.com ahpatel

    The solution I posted, combined with a BIOS pw, resolves the wait-time issue by putting the pw prompt at the beginning of the process instead of in the middle of it.

    The only thing I can think of to securely get around your use case is to put your computer in a hibernation state rather than shutting it down. Is that an option?

    Let me know if you come up with anything.

  • http://www.computerkeepsrestarting.com Computer keeps restarting

    Thank you for your good article for it to learn and understand more about my work in it. Hope you'll have great articles like this again

  • http://professional-suggestion.com/ Uninstall Program

    This will be great if it will work. Thanks for sharing it.

  • http://professional-suggestion.com/ Uninstall Program

    This will be great if it will work. Thanks for sharing it.

  • http://creditautosales.cz.cc credit auto sales

    Excellent! Great article, I already saved it to my favourite,

  • Anonymous

    Last time I forgot my password and tried everything i could do but failed, until I found this great tool Password Genius. It works great, and you can google it.

blog comments powered by Disqus