Logon Automatically and lock computer (With Password!)

So your the only user on your computer and you want to have the security of your own password, but you don’t want to have to wait for all your startup programs to launch when you first boot up. You wish there was just some way to have your computer startup, load all your programs, but be secure so that it does it all in the background of the login screen and you don’t have to wait for it.

Paying something like $50 for a program such as Tweak UI is just out of the question, wouldn’t you agree? Well, luckily for you, you can do this for free! Just follow the next couple of steps in this post and you will have your dream in no time.

Lets get started!

Step 1:

Go to your desktop and right-click any where that has no file, so that it brings up the default right-click menu.

Select “New” from the menu, then select “Shortcut“. “Shortcut” is located just under “Folder“.

Step 3

Step 1

Step 2:

Windows will now ask you to specify the location for the shortcut.

Copy and paste the following into the location. If you wish to type it, please note that it is cAsE SeNsItIvE.

%windir%\System32\rundll32.exe user32.dll,LockWorkStation

Make sure there are no trailing spaces at the beginning or end of the line.

Step 4

Step 2

Click “Next” to continue”

Step 3:

Change the default name for your shortcut from “rundll32.exe” to anything that you want. I called mine “Lock“.

Step 5

Step 3

Then click “Finish“.

Step 4:

Now double click on your newly created shortcut and it should lock your computer. It will not log you off.

Just type your password back in on the logon screen and you will see! If it comes up with an error, then delete the shortcut and go back to Step 3.

Step 5:

Right-click on your shortcut and select “Cut” from the menu.

Step 6:

Click on the start menu and then go to “All Programs“. Find a folder in there called “Startup“, right-click on it and select “Open“.

Step 8

Step 6

Step 7:

Now, right-click any where in the “Startup” folder and select paste. You will see your shortcut be placed in there.

Step 8:

Click on the “Start” menu and select “Run“.

Vista Users can type “Run” into the search field in the start menu if it isn’t present.

Step 9:

OK, so, if you’re using Windows XP you have to type “control userpasswords2” as the run command and click “OK

Step 2

Step 9

Vista users do the same:

Step 2, Vista

Step 9, Vista

If the security window comes up in Vista, just click “Continue“.

Step 10:

You will see a window come up called “User Accounts“.

Uncheck the tick box that says “Users must enter a user name and password to use this computer“.

Then click “Apply“.

You will be asked to enter in the password twice for your username.

Enter your password and click “OK“.

Step 10

Step 10

Click “OK” again on the user accounts screen.

Step 11:

That’s it! You’re done! If you want to test this, restart your computer. You will see it load up, then it will bypass the logon screen, loggin you on, then it will lock your computer still loading up all your startup programs!

 Mail this post

Popularity: 70% [?]

Posted under Automation, Security

This post was written by Slyke on October 11, 2008

2 Comments so far

  1. Ronnie Guthrie October 19, 2008 11:41 pm

    For added security (using XP), instead of putting the shortcut to ‘Lock workstation’ in your startup group (which can be bypassed by holding the shift key during logon), setup a local logon script as follows…

    (this replaces steps 1 to 7 above)

    Start - Run - notepad

    Copy and paste the line:

    %windir%\System32\rundll32.exe user32.dll,LockWorkStation

    Save the file as c:\windows\lock.cmd

    Close notepad

    Start - Run - gpedit.msc
    (this opens your local Group Policy editor)

    Expand User Configuration - Windows Settings - Scripts (Logon/Logoff)

    Double click the Logon entry in the right hand pane (this opens a Logon Properties dialog)

    Click the Add button
    (this opens the Add a Script dialog)

    Type: c:\windows\lock.cmd in the Script Name box

    Click OK, OK and close the Group Policy window

    At next startup, your workstation should lock noticably faster, and can’t be skipped by holding the shift key :)

  2. dwb November 27, 2008 1:32 am

Trackbacks

Leave a Comment

Name (required)

Email (required)

Website

Comments

More Blog Post

Previose Post: How to defrag?