You might own a computer but live with some other people either roommate, family, or your brother that potentially using the computer. If you going to leave the PC for a while and want it still turned on and running the previous task when you back, you can use Lock Screen instead of Sleep or Shut Down.
However, configuring Dynamic Lock for Windows 10, for example, requiring an additional device with a Bluetooth connection. Hence, when you away from the computer, the system would automatically detect it and immediately lock the computer. Otherwise, you can set Windows to the Sleep state after several minutes and it will show Lock Screen once it turned on.
Anyway, Microsoft has given access to the Local Security Policy where user able to define the Lock Screen automatically after a moment you’re not in use (idle).
The following guide is relevant for recent Windows line, including Windows 7, Windows 8, and Windows 10.
Lock Windows Automatically
Go to Start Menu and find Local Security Policy and launch it. You can also found it on Run program using “secpol.msc” command.
Now, expand the Local Policies menu and select Security Options.
On the right-side area, navigate to Interactive logon: Machine inactivity limit, right-click on it and select Properties.
Set how long the computer is not in use to activate automatic lock screen command. Then, click OK to confirm.
Finally, restart the machine to take the effect.
Will the computer be locked when I watch a video?
No, don’t worry about that. When you watching a video both on media player and browser, Windows will prevent the computer from plummed into the idle state.
Is the recent program(s) still running when the PC is locked?
Yes, it will keep running as it was even when the machine is locked. Some task like installation progress, download, or upload would remain active. Therefore, you can leave the PC while running tasks that don’t demand your action or attention.
In addition, you can lock the computer by pressing WindowsKey+L simultaneously. A free third-party app like Lock My PC also helps to perform automatic lock screen plus additional capabilities.