Disable auto-lock on inactivity [duplicate]
Open run command box by pressing + R keys simultaneously. Type gpedit.msc
in the box and press Enter key.
On the Group Policy Editor, expand
Computer Configuration
->Administrative Templates
->Control Panel
and then click onPersonalization
.-
Now, on the right pane, double-click on
Do not display the lock screen
to enable or disable this feature.