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?
console log display off timeoutfeature in Power Option
Set timeout to 0 to turn it off.
Unlocked the missing Power Settings feature in Server 2012.
Open the following registry key -
Set the following value -
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)
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.
I know this is an old question, but this information might be useful to others:
If you are running in a domain environment, create this setting accordingly in a GPO, otherwise configure the local GPO (
Computer Configuration -> Policies -> Windows Settings -> Security Settings -> Local Policies -> Security Options -> Interactive logon: Machine inactivity limit
If you wann prevent lockout set it to zero, keep in mind the security impact this change can have dependent on your environment.
Expanding Cowboy's answer.
List the power schemes, this will report a list of schems with GUIDs and names.
The GUIDs have aliases
Common aliases are
SCHEME_MAX = Power saver (Max power saving) SCHEME_BALANCED = Balanced (Typical) SCHEME_MIN = High performance (Min power saving)
Then disable for all standard power schemes, for AC and DC.
powercfg /setacvalueindex SCHEME_MIN SUB_NONE CONSOLELOCK 000 powercfg /setdcvalueindex SCHEME_MIN SUB_NONE CONSOLELOCK 000 powercfg /setacvalueindex SCHEME_MAX SUB_NONE CONSOLELOCK 000 powercfg /setdcvalueindex SCHEME_MAX SUB_NONE CONSOLELOCK 000 powercfg /setacvalueindex SCHEME_BALANCED SUB_NONE CONSOLELOCK 000 powercfg /setdcvalueindex SCHEME_BALANCED SUB_NONE CONSOLELOCK 000
I'm running server 2012 R2 Std and the option is there. Just change it in the group policy and set it to 0 as Matze describes above. I just set up 3 2012 servers today and this is how I do it every time. Force a policy update or wait it out. Sometimes I have to log off and back on before it picks up the policy change. To force the policy update run gpupdate /force from an admin prompt.
Open the Group Policy Object Editor and then navigate to Computer Configuration \ Administrative Templates \ System \ Power Management \ Video and Display Settings.
Enable and then change the value of Turn Off the Display (Seconds) to 0.
(Because the default seems to be 0, but when you click on Enabled it sets the value to 1!)
Except that option is not there anymore. The problem is that the default setting in the power configuration settings for CONSOLELOCK is 001 and there is no way to change it except by using powercfg. To display the current setting for the high performance scheme run this command:
powercfg /q SCHEME_MIN SUB_NONE
You will see the values for both AC and Battery are 001. To change them to 000 run these commands:
powercfg /setacvalueindex SCHEME_MIN SUB_NONE CONSOLELOCK 000. powercfg /setdcvalueindex SCHEME_MIN SUB_NONE CONSOLELOCK 000,
If you have defined a custom power scheme you will have to provide its identity.
Local Security Policy in
Control Panel > System and Security > Administrative Tools, in the left panel select
Security Settings > Local Policies > Security Options find and double-click
Microsoft network server: Amount of idle time required before suspending session by default it should be
15 so set it to
0. See attached screenshot.