Windows computers often enter sleep mode automatically when left idle, even at the lock screen or after specific events like system updates or remote Wake-on-LAN (WOL) triggers. This behavior can interrupt remote access, background tasks, or scheduled updates, especially when you don’t want your PC to sleep before you log in. Adjusting the System Unattended Sleep Timeout setting directly addresses this by letting you control how long your computer waits before sleeping in these unattended scenarios.
Configure System Unattended Sleep Timeout via Registry Editor
Win + R to open the Run dialog, typing regedit, and pressing Enter. If prompted by User Account Control, choose Yes to proceed.
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Power\PowerSettings\238C9FA8-0AAD-41ED-83F4-97BE242C8F20\7bc4a2f9-d8fc-4469-b07b-33eb785aaca0
This location stores the configuration for the System Unattended Sleep Timeout setting.

Attributes value in the right pane. Change its value data from 1 to 2 and click OK. This action makes the System Unattended Sleep Timeout option visible in Windows Power Options.Join readers who trust AllThings.How
Add us as a preferred source on Google so our practical guides show up first next time you search.
Add to Google Preferences →Adjust System Unattended Sleep Timeout in Power Options
Power Options, or by searching for Power Options in the Start menu.

Change advanced power settings. In the dialog that appears, scroll down to find the Sleep section, then expand it. You should now see the System unattended sleep timeout option.
0 prevents the PC from sleeping automatically in unattended scenarios. Click Apply and OK to save your changes.Win + L) or triggering a WOL event to confirm that your PC stays awake as configured.Alternative: Use Command Prompt to Change System Unattended Sleep Timeout
Win + X and select Command Prompt (Admin) or Windows Terminal (Admin).
0 for never):powercfg -change -standby-timeout-unattended 0

This command immediately updates the timeout for the active power plan. You can replace 0 with any number of seconds if you want a specific delay.
Tips and Maintenance
- Setting the timeout too high or to
0may increase power usage, especially on laptops. - For remote access or scheduled tasks, ensure your network and Wake-on-LAN settings are configured to avoid unwanted sleep behavior.
- If the setting reverts after Windows updates, repeat the steps to reapply your preferred configuration.
By configuring the System Unattended Sleep Timeout, you control when your PC sleeps during lock screen or unattended scenarios, optimizing uptime for remote access and background processes. Revisit these settings after major updates or hardware changes to maintain your preferred sleep behavior.






