How to use Command Prompt to lock Windows 10 PC – Guide

In Windows 10, the lock option is used to protect your work. When you lock your computer, your files remain safe while you are away from your computer. Locking the computer is always a good habit. A locked computer hides and protects programs and documents, allowing only the person who locked the computer to unlock it. To lock a Windows computer, you need to hold down the Windows logo key on your keyboard and press the L key. This key combination locks your computer. Windows + L Another way to lock your computer is to click on the start menu in the start menu and then on your profile picture. There you will see the blocking option. ..

If you click on this blocking option, your computer will be blocked immediately. In this article, we will use another method to lock your computer. Copy and paste the above command into the command prompt window. After executing the command, the computer will lock automatically. Then you need to enter a password or PIN to log into the system. So, one thing you should know before switching to cyber security is hacking to keep your PC locked down at all times.

Using Command Prompt Lock Your Windows 10 PC

To open a command prompt on your PC, first click on the “Start” menu and type “cmd” in the Windows search bar and select “Command Prompt” from the search results.

To open the Command Prompt, press “Windows + R” and type “cmd”. ..

lockwin10

Your computer will be locked as soon as it starts up. You must enter your password, PIN or other login method to access it.

Set the lock screen timeout setting using the command

To lock your PC, you will need to open a command prompt as an administrator. Right-click on “Command Prompt” by typing “cmd” in the Windows search bar and then in the results. Next up, select the “Run as administrator” option from the menu that appears. With the command prompt open, run this command:

To set the index for scheme_current to Sub_Video, VIDEOCONLOCK: powercfg.exe /SETACVALUEINDEX SCHEME_CURRENT SUB_VIDEO VIDEOCONLOCK ..

remove-lock-screen-time

This command sets the video lock index for the current scheme.

Final note

Windows 10 PC security is a top priority for many users, and one of the ways to protect your computer is by using Command Prompt to lock it. This guide will show you how to use Command Prompt to lock Windows 10 PC. First, open the Command Prompt window by typing cmd in the Start screen’s search bar and hit enter. Then type “cmd” again and hit enter again. The Command Prompt window will open. Now, type “lockwin10” and hit enter. The command prompt will ask for your password. If you don’t have a password, you can type “notepad -p” at the command prompt to create one. After creating your password, type “exit” at the command prompt and press Enter. The Command Prompt window will close.