How to Lock Your Windows 10 PC Using Command Prompt


Windows 10 Logo

Just one of the 1st procedures of cyber protection is to normally lock your Computer ahead of stepping absent. When it may not be the fastest way to lock your Home windows 10 Computer system, you can do it utilizing the Command Prompt.

Lock Your Home windows 10 Pc Utilizing Command Prompt

To start with, open the Command Prompt on your Pc by opening the “Start” menu, typing “cmd” in the Home windows Lookup bar, and then deciding upon “Command Prompt” from the look for results.

Command Prompt will now open up. In this article, operate this command to lock your Windows 10 Laptop.

Rundll32.exe consumer32.dll,LockWorkStation

At the time executed, your Personal computer will be locked. You are going to have to indication back in with your PIN, password, or whatsoever sign-in system you generally use.

Connected: How to Lock Your Home windows 10 Pc Remotely

Set the Lock Display screen Timeout Environment Making use of Command Prompt

After you’ve locked your Laptop, the lock screen will normally be displayed for a selected sum of time just before it time outs. You can set the sum of time that requirements to go prior to timing out working with the Command Prompt.

To do this, you’ll have to have to open up Command Prompt as an admin. Do so by typing “cmd” in the Home windows Look for bar and then proper-clicking “Command Prompt” from the success. Following, select “Run As Administrator” from the menu that seems.

With Command Prompt open up, run this command.

powercfg.exe /SETACVALUEINDEX Scheme_Latest SUB_Online video VIDEOCONLOCK 

Exchange with your ideal total of time in seconds. That usually means if you want to time out the lock screen soon after two minutes, you’d enter this command:

powercfg.exe /SETACVALUEINDEX Plan_Present-day SUB_Video VIDEOCONLOCK 120

Be aware: This command sets the lock monitor timeout placing for your Computer if it’s plugged up to a electrical power supply. To set the lock monitor timeout location for your Personal computer if it is managing on battery, adjust/SETACVALUEINDEX to/SETDCVALUEINDEX and operate the command as standard.

Up coming, run this command:

powercfg.exe /SETACTIVE Scheme_Recent

Now your lock screen will timeout soon after the established total of time. Give it a try out!

Exit mobile version