Skip to content

Instantly share code, notes, and snippets.

@sharno
Last active July 27, 2025 02:58
Show Gist options
  • Select an option

  • Save sharno/f3ae3e3c15e965f5479f0c7545f2140f to your computer and use it in GitHub Desktop.

Select an option

Save sharno/f3ae3e3c15e965f5479f0c7545f2140f to your computer and use it in GitHub Desktop.
Show Windows 10 advanced power settings
# Networking connectivity in Standby
REG ADD HKLM\SYSTEM\CurrentControlSet\Control\Power\PowerSettings\F15576E8-98B7-4186-B944-EAFA664402D9 /v Attributes /t REG_DWORD /d 2 /f
# Requires -RunAsAdministrator
# Unlock-PowerCfg - v22.05.11
# Disable "Connected Standby"
Set-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Control\Power' -Name 'CSEnabled' -Value 0 -Force
# Get Power Settings entries and add/set 'Attributes' to 2 to unhide
$PowerCfg = (Get-ChildItem 'HKLM:\SYSTEM\CurrentControlSet\Control\Power\PowerSettings' -Recurse).Name -notmatch '\bDefaultPowerSchemeValues|(\\[0-9]|\b255)$'
foreach ($item in $PowerCfg) { Set-ItemProperty -Path $item.Replace('HKEY_LOCAL_MACHINE','HKLM:') -Name 'Attributes' -Value 2 -Force }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment