Automatically lock your screen
When you leave your computer, you shouldto prevent other people from using your desktop and accessing your files. If you sometimes forget to lock your screen, you may wish to have your computer's screen lock automatically after a set period of time. This will help to secure your computer when you aren't using it.
When your screen is locked, your applications and system processes will continue to run, but you will need to enter your password to begin using them again.
To set the length of time before your screen locks automatically:
Type "Settings" into the global search bar on your desktop. Click on the resulting Settings icon, or press Enter, to open.
Select Screen Lock.
Make sure Automatic Screen Lock is switched on, then select a length of time from the drop-down list.
To allow notifications to be displayed on the lock screen, switch Show Notifications to ON.
When your screen is locked, and you want to unlock it, press Esc, or swipe up from the bottom of the screen with your mouse. Then enter your password, and press Enter or click Unlock.