Windows News and info 15th Anniversary 2009-2024
Windows 11 | Windows 10 News on these iconic operating systems. => Windows 10 Help | How To & Fixes | Tips & Tricks => Topic started by: javajolt on September 02, 2020, 12:41:54 PM
-
(http://i.postimg.cc/FHdYzzjR/sign-in-security-feature.jpg)
One of the first rules of cyber security is to always lock your PC before stepping away. While it may not be the quickest way to lock your Windows 10 PC, you can do it using the Command Prompt.
Lock Your Windows 10 PC Using Command Prompt
First, open the Command Prompt on your PC by opening the “Start” menu, typing “cmd” in the Windows Search bar, and then selecting “Command Prompt” from the search results.
(http://i.postimg.cc/k5jMydNZ/1.png)
Command Prompt will now open. Here, run this command to lock your Windows 10 PC.
Rundll32.exe user32.dll,LockWorkStation
(http://i.postimg.cc/kgcgBCLz/x-Command-for-locking-your-Windows-10-PC-png-pagespeed-gp-jp-jw-pj-ws-js-rj-rp-rw-ri-cp-md-ic-Ex-Bc40-R.png)
Once executed, your PC will be locked. You’ll have to sign back in with your PIN, password, or whatever sign-in method you usually use.
Set the Lock Screen Timeout Setting Using Command Prompt
Once you’ve locked your PC, the lock screen will generally be displayed for a certain amount of time before it time outs. You can set the amount of time that needs to pass before timing out using the Command Prompt.
To do this, you’ll need to open Command Prompt as an admin. Do so by typing “cmd” in the Windows Search bar and then right-clicking “Command Prompt” from the results. Next, select “Run As Administrator” from the menu that appears.
(http://i.postimg.cc/0jdLckGq/x-Open-Command-Prompt-as-an-Admin-png-pagespeed-gp-jp-jw-pj-ws-js-rj-rp-rw-ri-cp-md-ic-i-A7-YHg4-Vh-J.png)
With Command Prompt open, run this command.
powercfg.exe /SETACVALUEINDEX SCHEME_CURRENT SUB_VIDEO VIDEOCONLOCK <time>
Replace <time> with your desired amount of time in seconds. That means if you want to time out the lock screen after two minutes, you’d enter this command:
powercfg.exe /SETACVALUEINDEX SCHEME_CURRENT SUB_VIDEO VIDEOCONLOCK 120
(http://i.postimg.cc/jq7Pg8W2/5.png)
Note: This command sets the lock screen timeout setting for your PC if it’s plugged up to a power source. To set the lock screen timeout setting for your PC if it’s running on battery, change/SETACVALUEINDEX to/SETDCVALUEINDEX and run the command as normal.
Next, run this command:
powercfg.exe /SETACTIVE SCHEME_CURRENT
(http://i.postimg.cc/0jPkC2Mp/6.png)
Now your lock screen will timeout after the set amount of time. Give it a try!
source (http://www.howtogeek.com/686575/how-to-lock-your-windows-10-pc-using-command-prompt/)