Full Guide: Automatically Lock Windows 7 PC Immediately After Auto-Login (Startup)


Lock Windows 7 After Auto Login_thumb.jpg 1Let’s say you want your PC to boot up unattended, but you don’t want to give anyone access. Simple: Simply lock your PC right after it started!


Step 1: Create Auto Login For Windows 7

Tip: If you fail, read this tutorial that explains how to auto-login

We explained how to create an auto login for Windows 7 previously, but I’ll summarize it again to make sure you get it all right:

1. Click on Start and enter the command netplwiz and hit Enter

2. UNcheck the box Users must enter a user name and password to use this computer

3. Click APPLY

4. A popup will appear asking you for your password:

Create Auto Login For Windows 7.Jpg 1

5. Once you entered the password and confirmed the auto-login will be setup! Your PC will no longer require a password to start.

Step 2: Create Shortcut To Lock Your PC

We also have a tutorial for this step: Creating shortcuts in Windows 7

6. Next, we are going to create a simple shortcut that will lock your PC. So go to your desktop, right-click on it and select New – Shortcut

New Desktop Shortcut Creation 1

7. Copy this bold text rundll32.exe user32.dll,LockWorkStation and paste it into the location field:

Shortcut Location Path 1

8. When that is done, follow the instructions (click next and give the shortcut a name e.g. lock me)

9. Open the Windows Explorer and go to the startup folder location

Location: C:\Users\(username)\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup

10. Keep in mind that you have to replace (username) with your own and you have to unhide hidden files and folders as explained on our site countless times.

11. Move the shortcut to the Startup folder either by dragging it or using the shortcuts for copy and paste (CTRL + C and CTRL + V)

12. When that is done your PC will immediately lock right after it starts.

IMPORTANT: If you have a lot of other startup programs it is entirely possible that your PC will take quite a long time to start before it actually runs the shortcut, thus it might not be the best solution but by far the easiest. If you need a more secure solution, let us know. We might come up with some script that runs right after the login process, making this more secure.

Rate this article:
This article was rated 5 out of 5 stars
Based on 1 ratings

How to change microphone level / sensitivity in Windows 7
How to mark or bookmark lines in notepad+++ using regular expressions
How to use more than 4GB RAM in Windows 7 32-bit or Windows 8 32-bit

Juicy Logo White You love Windows, Gaming and everything digital? Great, we too! We have thousands of great Windows 7 themes, registry tweaks, tutorials, so please use our search box if you look for anything specific.

If you have some awesome desktop themes, tips or want to write for us, then drop us a mail!



Written by: Oliver Krautscheid
Oliver is the founder and lead editor of this site. He is interested in finding new ways to break Windows, find common e.... Full Bio

Contact The Author: Get Free Help.png

Connect:

facebook google twitter LinkedIn


Need help? Ask a question at our QA site, click the red button to get started:

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>