Situation: the client manually set both Screen & Sleep settings to “Never”, but it locks after inactivity. They wonder if there is any GPO setting (or registry, etc.) that will prevent a Windows 10 machine from locking after inactivity?
Resolution: 1. For group policy, try this:
Computer Configuration->Windows Settings->Security Settings->Local Policies->Security Options->Interactive logon: Machine inactivity limit
Changing this directly affects the stated registry entry: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System\InactivityTimeoutSecs
2. For registry, try this:
Registry Hive: HKEY_LOCAL_MACHINE
Registry Path: \Software\Microsoft\Windows\CurrentVersion\Policies\System\
Value Name: InactivityTimeoutSecs