Disable auto-lock on inactivity [duplicate]

Open run command box by pressing enter image description here + 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 on Personalization.

  • Now, on the right pane, double-click on Do not display the lock screen to enable or disable this feature.

    enter image description here

    enter image description here