There is an option in Windows 10 that will automatically lock your computer after a period of inactivity. For example, you can make Windows 10 automatically lock the computer after a minute of inactivity.
Automatically lock Windows 10 PC
In this guide, we will see how to automatically lock a Windows 10 computer when you are away from your computer.
Step 1: Type (or copy and paste) ” control desk.cpl, @ screensaver “ in the Run command and then press Enter to open the Monitor Setup dialog box. Alternatively, navigate to Settings app> Personalization> Lock screen> Screen saver settings to open the same.
If you are using Windows 10 Creators Update or later
Step 2: Here, from the Wait drop-down box, choose the time (in minutes) after which Windows 10 will lock the computer and ask for a password to reuse. We recommend that you keep it for 1 minute.
Step 3: Check the box labeled On resume, display logon screen option.
Click the Apply button. That is all! You have successfully configured your Windows 10 computer to lock after a certain period of inactivity automatically.