Page 1 of 1

[SOLVED] tis-disable-sleepmode & Windows 10

Published: November 28, 2019 - 09:24
by dvinouze
Good morning,
I'm experiencing strange behavior on our network; the Windows 10 machines have the package tis-disable-sleepmode requests the user session password when a user wishes to use the workstation again.
This is not the expected behavior; the screen should simply turn off after 20 minutes of inactivity.

Code: Select all

run('"powercfg.exe" -change -monitor-timeout-ac 20')
run('"powercfg.exe" -change -monitor-timeout-dc 20')
Did I miss an option?
THANKS

Re: tis-disable-sleepmode & Windows 10

Published: November 28, 2019 - 11:08 AM
by agauvrit
Good morning,

To disable this behavior, you can try adding these commands to the package, which should disable the password request

Code: Select all

run('"powercfg" /SETDCVALUEINDEX SCHEME_CURRENT SUB_NONE CONSOLELOCK 0')
run('"powercfg" /SETACVALUEINDEX SCHEME_CURRENT SUB_NONE CONSOLELOCK 0')

Re: tis-disable-sleepmode & Windows 10

Published: November 28, 2019 - 4:54 PM
by dvinouze
Thank you for your response.
I tested these commands

Code: Select all

run('"powercfg.exe" -change -monitor-timeout-ac 20')
run('"powercfg.exe" -change -monitor-timeout-dc 20')
run('"powercfg.exe" /SETDCVALUEINDEX SCHEME_CURRENT SUB_NONE CONSOLELOCK 0')
run('"powercfg.exe" /SETACVALUEINDEX SCHEME_CURRENT SUB_NONE CONSOLELOCK 0')
This is not working; the user's workstation is still requesting authentication!
On the other hand, this method It works, but only thanks to GPOs

Re: tis-disable-sleepmode & Windows 10

Published: November 28, 2019 - 7:54 PM
by sfonteneau
So configurable as a wapt package with a registry key:

https://getadmx.com/?Category=Windows_1 ... OnResume_2

Registry Hive HKEY_LOCAL_MACHINE
Registry Path Software\Policies\Microsoft\Power\PowerSettings\0e796bdb-100d-47d6-a2d5-f7d2daa51f51
Value Name ACSettingIndex
Value Type REG_DWORD
Enabled Value 1
Disabled Value 0