PC Narcolepsy: Set System Unattended Sleep Timeout - Windows Vista/7/8 - altered to set defaults to 35min - testing
Log In or Register to download the BES file, and more.

0 Votes

Description

By default, systems on standby that are woken by a Wake-on-LAN or Wake-from-Standby event will go back to sleep in two minutes if the system does not receive any user input. This may cause a condition called "PC Narcolepsy" where the computer will fall back asleep before tasks can be run on that system.

Use this Fixlet to configure the amount of time the system will stay awake after recieving a Wake-on-LAN or Wake-from-Standby event on Windows Vista, 7 and 8 systems. This setting is called the "System Unattended Sleep Timeout".

Note: This task only changes the System Unattended Sleep Timeout setting on the current power profile. If the power profile is changed, this task may need to be reapplied.


Property Details

ID1419
TitlePC Narcolepsy: Set System Unattended Sleep Timeout - Windows Vista/7/8 - altered to set defaults to 35min - testing
DomainBESC
CategoryStandby Behavior
Download Size0
Sourcejgs194
Source ID<Unspecified>
Source SeverityN/A
Source Release Date8/13/2010 12:00:00 AM
KeywordsWake System Unattended Sleep Timeout
Is TaskTrue
Added by on 3/21/2013 10:30:43 AM
Last Modified by on 3/21/2013 10:30:43 AM
Counters 6378 Views / 5 Downloads
User Rating 1 star 2 star 3 star 4 star 5 star * Average over 0 ratings. ** Log In or Register to add your rating.

Relevance

Used in 3 fixlets   * Results in a true/false
Show indented relevance
(if( name of operating system starts with "Win" ) then platform id of operating system != 3 else true) AND (if exists property "in proxy agent context" then ( not in proxy agent context ) else true )
Used in 1 fixlet   * Results in a true/false
Show indented relevance
(it = "WinVista" OR it = "Win7" OR it = "Win8") of name of operating system
Used in 1 fixlet   * Results in a true/false
Show indented relevance
exists keys whose(exists values "AcSettingIndex" of it AND (35*60) != value "AcSettingIndex" of it) of key "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Power\PowerSettings\238C9FA8-0AAD-41ED-83F4-97BE242C8F20\7bc4a2f9-d8fc-4469-b07b-33eb785aaca0\DefaultPowerSchemeValues" of native registry

Actions

Action 1

Action Link Click here to change the System Unattended Sleep Timeout setting on the current power profile. You will be prompted for the number of minutes.
Script Type BigFix Action Script
// 35*60 represents waiting 35min because the setting is in number of seconds.
// This must be the same as in the relevance.
parameter "secToWaitAfterWakeUpUnattended" = "{(35*60) as string}"
parameter "numOfValuesToChange" = "{number of values "AcSettingIndex" of keys whose(exists values "AcSettingIndex" of it AND (parameter "secToWaitAfterWakeUpUnattended" of action as integer) != value "AcSettingIndex" of it) of key "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Power\PowerSettings\238C9FA8-0AAD-41ED-83F4-97BE242C8F20\7bc4a2f9-d8fc-4469-b07b-33eb785aaca0\DefaultPowerSchemeValues" of native registry}"
// sanity check, must be between 2 and 1440 min. The setting is often 0 for servers since they never sleep.
continue if {parameter "secToWaitAfterWakeUpUnattended" of action as integer >= (2*60) AND parameter "secToWaitAfterWakeUpUnattended" of action as integer <= (1440*60)}
//set for balanced
//regset64 "[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Power\PowerSettings\238C9FA8-0AAD-41ED-83F4-97BE242C8F20\7bc4a2f9-d8fc-4469-b07b-33eb785aaca0\DefaultPowerSchemeValues\381b4222-f694-41f0-9685-ff5bb260df2e]" "AcSettingIndex"=dword:{parameter "secToWaitAfterWakeUpUnattended" of action as integer as hexadecimal}
//set for high performance
//regset64 "[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Power\PowerSettings\238C9FA8-0AAD-41ED-83F4-97BE242C8F20\7bc4a2f9-d8fc-4469-b07b-33eb785aaca0\DefaultPowerSchemeValues\8c5e7fda-e8bf-4a96-9a85-a6e23a8c635c]" "AcSettingIndex"=dword:{parameter "secToWaitAfterWakeUpUnattended" of action as integer as hexadecimal}
//set for power saver
//regset64 "[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Power\PowerSettings\238C9FA8-0AAD-41ED-83F4-97BE242C8F20\7bc4a2f9-d8fc-4469-b07b-33eb785aaca0\DefaultPowerSchemeValues\a1841308-3541-4fab-bc81-f71556f20b4a]" "AcSettingIndex"=dword:{parameter "secToWaitAfterWakeUpUnattended" of action as integer as hexadecimal}
//set for any power profile that needs altered, only if it needs altered.
continue if{exists keys whose(exists values "AcSettingIndex" of it AND (parameter "secToWaitAfterWakeUpUnattended" of action as integer) != value "AcSettingIndex" of it) of key "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Power\PowerSettings\238C9FA8-0AAD-41ED-83F4-97BE242C8F20\7bc4a2f9-d8fc-4469-b07b-33eb785aaca0\DefaultPowerSchemeValues" of native registry}
regset64 "[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Power\PowerSettings\238C9FA8-0AAD-41ED-83F4-97BE242C8F20\7bc4a2f9-d8fc-4469-b07b-33eb785aaca0\DefaultPowerSchemeValues\{(preceding text of first "," of (it & ",") of concatenation "," of names of keys whose(exists values "AcSettingIndex" of it AND (parameter "secToWaitAfterWakeUpUnattended" of action as integer) != value "AcSettingIndex" of it) of key "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Power\PowerSettings\238C9FA8-0AAD-41ED-83F4-97BE242C8F20\7bc4a2f9-d8fc-4469-b07b-33eb785aaca0\DefaultPowerSchemeValues" of native registry)}]" "AcSettingIndex"=dword:{parameter "secToWaitAfterWakeUpUnattended" of action as integer as hexadecimal}
Success Criteria

This action will be considered successful when the following relevance clause evaluates to false:

 
Used in 1 fixlet and 1 analsis   * Results in a true/false
Show indented relevance
(parameter "numOfValuesToChange" of action as integer) = (number of values "AcSettingIndex" of keys whose(exists values "AcSettingIndex" of it AND (parameter "secToWaitAfterWakeUpUnattended" of action as integer) != value "AcSettingIndex" of it) of key "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Power\PowerSettings\238C9FA8-0AAD-41ED-83F4-97BE242C8F20\7bc4a2f9-d8fc-4469-b07b-33eb785aaca0\DefaultPowerSchemeValues" of native registry)

Sharing

Social Media:
Share this page on Yammer

Comments

Log In or Register to leave comments!