Is your Windows 10 device automatically locking the screen or logging off and you want to stop it? Go through the following settings and you should have no problem fixing the issue.
To disable the lock screen follow these settings. If you want to enable it just do the opposite.
Start>Settings>Power & Sleep> Sleep = Never
Start>Settings>Personalization>Lock Screen> Screen Saver Settings> Uncheck ” On resume, display logon screen”
Start>Settings>Accounts>Sign-in Options>Under Require Sign-in set ” If you’ve been away, when should Windows require you to sign in” to NEVER.
Disable (Uncheck) Dynamic lock on the Sign-in options screen