Press the Windows key + R,to open the Run dialog box.
- Type the following command and press Enter: gpedit.msc
- Go to: Computer Configuration > Policies> Administrative Templates> Control Panel> Personalization.
- In the right pane, click on "Do not display the lock screen".
- In the window that opens up, select "Enable" and click OK to validate.