Windows Server 2012 R2 prevent automatic logoff due to inactivity

windowswindows-server-2012

I have a stand alone windows 2012 server R2 that i log on to locally. it is not part of a domain and it is the standard install configuration with no policies enacted. The server logs off the desktop and locks it with a password. How can i prevent this?

Best Answer

In brief

  1. Unlock/turn on console log display off timeout feature in Power Option

  2. Set timeout to 0 to turn it off.

Detail Steps

Unlocked the missing Power Settings feature in Server 2012.

  1. Open the following registry key - HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Power\PowerSettings\7516b95f-f776-4464-8c53-06167f40cc99\8EC4B3A5-6868-48c2-BE75-4F3044BE88A7

  2. Set the following value - Attributes => 2

  3. Now open Control Panel>Power Options>Change Plan Settings>Change Advanced Power Settings
    a. The new Display section Console lock display off timeout is now available.
    b. Configure your “Plugged in” value accordingly (0 to disable)

Done.

p.s.

You may want to download my export .reg file and run it on your machine as a shortcut for step 1 & 2 above i.e. enabling console log display off timeout.

enter image description here