How to lock your Windows 10 PC Automatically after auto sign-in

Auto-logon is handy with Windows 10, so you can make your PC open programs at startup. You can also make your PC start automatically at certain times. You can make Windows 10 lock itself automatically for better protection and allow a password after automatic login. In this article, we will walk you through the entire procedure to automatically lock your Windows 10 PC when you log in.

Lock your Windows 10 PC automatically when you log in

To automatically lock your Windows 10 PC when you log in, follow this procedure step by step.

Click the Search button on the taskbar. Type Run in the search box and then click the Run option, as shown in the following image.

Run app

Once you click on the Run option, the following dialog box will appear.

run shell:startup command

Now type shell:startup in the Open text box and then click on the OK button as highlighted in the image above. While clicking the OK button, the following folder will be opened.

Add new shortcut

Right-click inside the folder and select the New -> Shortcut option as highlighted in the image above. The following dialog box will open.

Shortcut command rundll32.exe user32.dll, LockWorkStation

Copy and paste the following command into the Location text box.

rundll32.exe user32.dll, LockWorkStation

Then click on the Next button as highlighted in the image above. The next screen will look like this.

Lock computer shortcut

Enter the name of the shortcut and then click the Complete button as highlighted in the image above. Now when you click the following shortcut, your computer will be locked.

If you follow this procedure, you can automatically lock your Windows 10 PC when you log in.

Leave a Comment

*