-
Star
(142)
You must be signed in to star a gist -
Fork
(21)
You must be signed in to fork a gist
-
-
Save raspi/203aef3694e34fefebf772c78c37ec2c to your computer and use it in GitHub Desktop.
| # Show more settings in Windows 10 advanced power settings window | |
| # Harddisk settings | |
| powercfg -attributes 0012ee47-9041-4b5d-9b77-535fba8b1442 0b2d69d7-a2a1-449c-9680-f91c70521c60 -ATTRIB_HIDE | |
| powercfg -attributes 0012ee47-9041-4b5d-9b77-535fba8b1442 80e3c60e-bb94-4ad8-bbe0-0d3195efc663 -ATTRIB_HIDE | |
| powercfg -attributes 0012ee47-9041-4b5d-9b77-535fba8b1442 dab60367-53fe-4fbc-825e-521d069d2456 -ATTRIB_HIDE | |
| # Sleep transition settings | |
| powercfg -attributes 238C9FA8-0AAD-41ED-83F4-97BE242C8F20 25DFA149-5DD1-4736-B5AB-E8A37B5B8187 -ATTRIB_HIDE | |
| powercfg -attributes 238C9FA8-0AAD-41ED-83F4-97BE242C8F20 7bc4a2f9-d8fc-4469-b07b-33eb785aaca0 -ATTRIB_HIDE | |
| powercfg -attributes 238C9FA8-0AAD-41ED-83F4-97BE242C8F20 A4B195F5-8225-47D8-8012-9D41369786E2 -ATTRIB_HIDE | |
| powercfg -attributes 238C9FA8-0AAD-41ED-83F4-97BE242C8F20 abfc2519-3608-4c2a-94ea-171b0ed546ab -ATTRIB_HIDE | |
| powercfg -attributes 238C9FA8-0AAD-41ED-83F4-97BE242C8F20 d4c1d4c8-d5cc-43d3-b83e-fc51215cb04d -ATTRIB_HIDE | |
| # Power Scheme Personality | |
| # NOTE: will not show in UI even if unhidden | |
| powercfg -attributes 245d8541-3943-4422-b025-13a784f679b7 -ATTRIB_HIDE | |
| # Power buttons settings | |
| powercfg -attributes 4f971e89-eebd-4455-a8de-9e59040e7347 833a6b62-dfa4-46d1-82f8-e09e34d029d6 -ATTRIB_HIDE | |
| # Device idle policy | |
| # NOTE: shows in first node of settings tree if unhidden | |
| powercfg -attributes 4faab71a-92e5-4726-b531-224559672d19 -ATTRIB_HIDE | |
| # Processor power settings | |
| powercfg -attributes 54533251-82be-4824-96c1-47b60b740d00 06cadf0e-64ed-448a-8927-ce7bf90eb35d -ATTRIB_HIDE | |
| powercfg -attributes 54533251-82be-4824-96c1-47b60b740d00 0cc5b647-c1df-4637-891a-dec35c318583 -ATTRIB_HIDE | |
| powercfg -attributes 54533251-82be-4824-96c1-47b60b740d00 1299023c-bc28-4f0a-81ec-d3295a8d815d -ATTRIB_HIDE | |
| powercfg -attributes 54533251-82be-4824-96c1-47b60b740d00 12a0ab44-fe28-4fa9-b3bd-4b64f44960a6 -ATTRIB_HIDE | |
| powercfg -attributes 54533251-82be-4824-96c1-47b60b740d00 2ddd5a84-5a71-437e-912a-db0b8c788732 -ATTRIB_HIDE | |
| powercfg -attributes 54533251-82be-4824-96c1-47b60b740d00 3b04d4fd-1cc7-4f23-ab1c-d1337819c4bb -ATTRIB_HIDE | |
| powercfg -attributes 54533251-82be-4824-96c1-47b60b740d00 40fbefc7-2e9d-4d25-a185-0cfd8574bac6 -ATTRIB_HIDE | |
| powercfg -attributes 54533251-82be-4824-96c1-47b60b740d00 447235c7-6a8d-4cc0-8e24-9eaf70b96e2b -ATTRIB_HIDE | |
| powercfg -attributes 54533251-82be-4824-96c1-47b60b740d00 45bcc044-d885-43e2-8605-ee0ec6e96b59 -ATTRIB_HIDE | |
| powercfg -attributes 54533251-82be-4824-96c1-47b60b740d00 465e1f50-b610-473a-ab58-00d1077dc418 -ATTRIB_HIDE | |
| powercfg -attributes 54533251-82be-4824-96c1-47b60b740d00 4b92d758-5a24-4851-a470-815d78aee119 -ATTRIB_HIDE | |
| powercfg -attributes 54533251-82be-4824-96c1-47b60b740d00 4d2b0152-7d5c-498b-88e2-34345392a2c5 -ATTRIB_HIDE | |
| powercfg -attributes 54533251-82be-4824-96c1-47b60b740d00 5b33697b-e89d-4d38-aa46-9e7dfb7cd2f9 -ATTRIB_HIDE | |
| powercfg -attributes 54533251-82be-4824-96c1-47b60b740d00 5d76a2ca-e8c0-402f-a133-2158492d58ad -ATTRIB_HIDE | |
| powercfg -attributes 54533251-82be-4824-96c1-47b60b740d00 68dd2f27-a4ce-4e11-8487-3794e4135dfa -ATTRIB_HIDE | |
| powercfg -attributes 54533251-82be-4824-96c1-47b60b740d00 6c2993b0-8f48-481f-bcc6-00dd2742aa06 -ATTRIB_HIDE | |
| powercfg -attributes 54533251-82be-4824-96c1-47b60b740d00 71021b41-c749-4d21-be74-a00f335d582b -ATTRIB_HIDE | |
| powercfg -attributes 54533251-82be-4824-96c1-47b60b740d00 7b224883-b3cc-4d79-819f-8374152cbe7c -ATTRIB_HIDE | |
| powercfg -attributes 54533251-82be-4824-96c1-47b60b740d00 7d24baa7-0b84-480f-840c-1b0743c00f5f -ATTRIB_HIDE | |
| powercfg -attributes 54533251-82be-4824-96c1-47b60b740d00 8809c2d8-b155-42d4-bcda-0d345651b1db -ATTRIB_HIDE | |
| powercfg -attributes 54533251-82be-4824-96c1-47b60b740d00 8f7b45e3-c393-480a-878c-f67ac3d07082 -ATTRIB_HIDE | |
| powercfg -attributes 54533251-82be-4824-96c1-47b60b740d00 943c8cb6-6f93-4227-ad87-e9a3feec08d1 -ATTRIB_HIDE | |
| powercfg -attributes 54533251-82be-4824-96c1-47b60b740d00 984cf492-3bed-4488-a8f9-4286c97bf5aa -ATTRIB_HIDE | |
| powercfg -attributes 54533251-82be-4824-96c1-47b60b740d00 9ac18e92-aa3c-4e27-b307-01ae37307129 -ATTRIB_HIDE | |
| powercfg -attributes 54533251-82be-4824-96c1-47b60b740d00 a55612aa-f624-42c6-a443-7397d064c04f -ATTRIB_HIDE | |
| powercfg -attributes 54533251-82be-4824-96c1-47b60b740d00 c4581c31-89ab-4597-8e2b-9c9cab440e6b -ATTRIB_HIDE | |
| powercfg -attributes 54533251-82be-4824-96c1-47b60b740d00 c7be0679-2817-4d69-9d02-519a537ed0c6 -ATTRIB_HIDE | |
| powercfg -attributes 54533251-82be-4824-96c1-47b60b740d00 d8edeb9b-95cf-4f95-a73c-b061973693c8 -ATTRIB_HIDE | |
| powercfg -attributes 54533251-82be-4824-96c1-47b60b740d00 df142941-20f3-4edf-9a4a-9c83d3d717d1 -ATTRIB_HIDE | |
| powercfg -attributes 54533251-82be-4824-96c1-47b60b740d00 dfd10d17-d5eb-45dd-877a-9a34ddd15c82 -ATTRIB_HIDE | |
| powercfg -attributes 54533251-82be-4824-96c1-47b60b740d00 e70867f1-fa2f-4f4e-aea1-4d8a0ba23b20 -ATTRIB_HIDE | |
| powercfg -attributes 54533251-82be-4824-96c1-47b60b740d00 ea062031-0e34-4ff1-9b6d-eb1059334028 -ATTRIB_HIDE | |
| # Video settings | |
| powercfg -attributes 7516b95f-f776-4464-8c53-06167f40cc99 82DBCF2D-CD67-40C5-BFDC-9F1A5CCD4663 -ATTRIB_HIDE | |
| powercfg -attributes 7516b95f-f776-4464-8c53-06167f40cc99 90959d22-d6a1-49b9-af93-bce885ad335b -ATTRIB_HIDE | |
| powercfg -attributes 7516b95f-f776-4464-8c53-06167f40cc99 A9CEB8DA-CD46-44FB-A98B-02AF69DE4623 -ATTRIB_HIDE | |
| powercfg -attributes 7516b95f-f776-4464-8c53-06167f40cc99 aded5e82-b909-4619-9949-f5d71dac0bcd -ATTRIB_HIDE | |
| powercfg -attributes 7516b95f-f776-4464-8c53-06167f40cc99 aded5e82-b909-4619-9949-f5d71dac0bce -ATTRIB_HIDE | |
| powercfg -attributes 7516b95f-f776-4464-8c53-06167f40cc99 EED904DF-B142-4183-B10B-5A1197A37864 -ATTRIB_HIDE | |
| powercfg -attributes 7516b95f-f776-4464-8c53-06167f40cc99 FBD9AA66-9553-4097-BA44-ED6E9D65EAB8 -ATTRIB_HIDE | |
| # | |
| #powercfg -setacvalueindex scheme_current sub_processor bc5038f7-23e0-4960-96da-33abaf5935ec 100 | |
| # activate | |
| powercfg -setactive scheme_current |
Does not work here, unfortunately. This is what I am getting:
Set-ExecutionPolicy : Windows PowerShell updated your execution policy successfully, but the setting is overridden by
a policy defined at a more specific scope. Due to the override, your shell will retain its current effective
execution policy of Unrestricted. Type "Get-ExecutionPolicy -List" to view your execution policy settings. For more
information please see "Get-Help Set-ExecutionPolicy".
At line:1 char:46
- ... -ne 'AllSigned') { Set-ExecutionPolicy -Scope Process Bypass }; & 'C ...
-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~- CategoryInfo : PermissionDenied: (:) [Set-ExecutionPolicy], SecurityException
- FullyQualifiedErrorId : ExecutionPolicyOverride,Microsoft.PowerShell.Commands.SetExecutionPolicyCommand
Get-WmiObject :
At C:\Users\Administrator\Desktop\Tune & Management\Windows Inplace Upgrade\10. Power Scheme & Unlock All Power
Options\enable-all-advanced-power-settings.ps1:6 char:22
- ... tingTable = Get-WmiObject -Namespace root\cimv2\power -Class Win32_Po ...
-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~- CategoryInfo : NotSpecified: (:) [Get-WmiObject], FileNotFoundException
- FullyQualifiedErrorId : System.IO.FileNotFoundException,Microsoft.PowerShell.Commands.GetWmiObjectCommand
Exception calling "Format" with "2" argument(s): "Value cannot be null.
Parameter name: args"
At C:\Users\Administrator\Desktop\Tune & Management\Windows Inplace Upgrade\10. Power Scheme & Unlock All Power
Options\enable-all-advanced-power-settings.ps1:30 char:3
- $descr = [string]::Format("# {0}", $s.ElementName)
-
+ CategoryInfo : NotSpecified: (:) [], MethodInvocationException + FullyQualifiedErrorId : ArgumentNullException
powercfg -attributes 0012ee47-9041-4b5d-9b77-535fba8b1442 0b2d69d7-a2a1-449c-9680-f91c70521c60 -ATTRIB_HIDE
Exception calling "Format" with "2" argument(s): "Value cannot be null.
Parameter name: args"
At C:\Users\Administrator\Desktop\Tune & Management\Windows Inplace Upgrade\10. Power Scheme & Unlock All Power
Options\enable-all-advanced-power-settings.ps1:30 char:3
- $descr = [string]::Format("# {0}", $s.ElementName)
-
+ CategoryInfo : NotSpecified: (:) [], MethodInvocationException + FullyQualifiedErrorId : ArgumentNullException
powercfg -attributes 0012ee47-9041-4b5d-9b77-535fba8b1442 51dea550-bb38-4bc4-991b-eacf37be5ec8 -ATTRIB_HIDE
Exception calling "Format" with "2" argument(s): "Value cannot be null.
Parameter name: args"
At C:\Users\Administrator\Desktop\Tune & Management\Windows Inplace Upgrade\10. Power Scheme & Unlock All Power
Options\enable-all-advanced-power-settings.ps1:30 char:3
- $descr = [string]::Format("# {0}", $s.ElementName)
-
+ CategoryInfo : NotSpecified: (:) [], MethodInvocationException + FullyQualifiedErrorId : ArgumentNullException
powercfg -attributes 0012ee47-9041-4b5d-9b77-535fba8b1442 6738e2c4-e8a5-4a42-b16a-e040e769756e -ATTRIB_HIDE
Exception calling "Format" with "2" argument(s): "Value cannot be null.
Parameter name: args"
At C:\Users\Administrator\Desktop\Tune & Management\Windows Inplace Upgrade\10. Power Scheme & Unlock All Power
Options\enable-all-advanced-power-settings.ps1:30 char:3
- $descr = [string]::Format("# {0}", $s.ElementName)
-
+ CategoryInfo : NotSpecified: (:) [], MethodInvocationException + FullyQualifiedErrorId : ArgumentNullException
powercfg -attributes 0012ee47-9041-4b5d-9b77-535fba8b1442 80e3c60e-bb94-4ad8-bbe0-0d3195efc663 -ATTRIB_HIDE
Exception calling "Format" with "2" argument(s): "Value cannot be null.
Parameter name: args"
At C:\Users\Administrator\Desktop\Tune & Management\Windows Inplace Upgrade\10. Power Scheme & Unlock All Power
Options\enable-all-advanced-power-settings.ps1:30 char:3
- $descr = [string]::Format("# {0}", $s.ElementName)
-
+ CategoryInfo : NotSpecified: (:) [], MethodInvocationException + FullyQualifiedErrorId : ArgumentNullException
powercfg -attributes 0012ee47-9041-4b5d-9b77-535fba8b1442 d3d55efd-c1ff-424e-9dc3-441be7833010 -ATTRIB_HIDE
Exception calling "Format" with "2" argument(s): "Value cannot be null.
Parameter name: args"
At C:\Users\Administrator\Desktop\Tune & Management\Windows Inplace Upgrade\10. Power Scheme & Unlock All Power
Options\enable-all-advanced-power-settings.ps1:30 char:3
- $descr = [string]::Format("# {0}", $s.ElementName)
-
+ CategoryInfo : NotSpecified: (:) [], MethodInvocationException + FullyQualifiedErrorId : ArgumentNullException
powercfg -attributes 0012ee47-9041-4b5d-9b77-535fba8b1442 d639518a-e56d-4345-8af2-b9f32fb26109 -ATTRIB_HIDE
Exception calling "Format" with "2" argument(s): "Value cannot be null.
Parameter name: args"
At C:\Users\Administrator\Desktop\Tune & Management\Windows Inplace Upgrade\10. Power Scheme & Unlock All Power
Options\enable-all-advanced-power-settings.ps1:30 char:3
- $descr = [string]::Format("# {0}", $s.ElementName)
-
+ CategoryInfo : NotSpecified: (:) [], MethodInvocationException + FullyQualifiedErrorId : ArgumentNullException
powercfg -attributes 0012ee47-9041-4b5d-9b77-535fba8b1442 dab60367-53fe-4fbc-825e-521d069d2456 -ATTRIB_HIDE
Exception calling "Format" with "2" argument(s): "Value cannot be null.
Parameter name: args"
At C:\Users\Administrator\Desktop\Tune & Management\Windows Inplace Upgrade\10. Power Scheme & Unlock All Power
Options\enable-all-advanced-power-settings.ps1:30 char:3
- $descr = [string]::Format("# {0}", $s.ElementName)
-
+ CategoryInfo : NotSpecified: (:) [], MethodInvocationException + FullyQualifiedErrorId : ArgumentNullException
powercfg -attributes 0012ee47-9041-4b5d-9b77-535fba8b1442 dbc9e238-6de9-49e3-92cd-8c2b4946b472 -ATTRIB_HIDE
Exception calling "Format" with "2" argument(s): "Value cannot be null.
Parameter name: args"
At C:\Users\Administrator\Desktop\Tune & Management\Windows Inplace Upgrade\10. Power Scheme & Unlock All Power
Options\enable-all-advanced-power-settings.ps1:30 char:3
- $descr = [string]::Format("# {0}", $s.ElementName)
-
+ CategoryInfo : NotSpecified: (:) [], MethodInvocationException + FullyQualifiedErrorId : ArgumentNullException
powercfg -attributes 0012ee47-9041-4b5d-9b77-535fba8b1442 fc95af4d-40e7-4b6d-835a-56d131dbc80e -ATTRIB_HIDE
Exception calling "Format" with "2" argument(s): "Value cannot be null.
Parameter name: args"
At C:\Users\Administrator\Desktop\Tune & Management\Windows Inplace Upgrade\10. Power Scheme & Unlock All Power
Options\enable-all-advanced-power-settings.ps1:30 char:3
- $descr = [string]::Format("# {0}", $s.ElementName)
-
+ CategoryInfo : NotSpecified: (:) [], MethodInvocationException + FullyQualifiedErrorId : ArgumentNullException
@dabugen as it says: you need to set your PowerShell Execution Policy. See: Get-Help Set-ExecutionPolicy.
is "$descr = [string]::Format("# {0}", $s.ElementName)" correct formatting? Because it does not return the description. In fact it causes an error...
Exception calling "Format" with "2" argument(s): "Value cannot be null.
Parameter name: args"
At D:\Powercfg-Shit\enable-all-advanced-power-settings.ps1:30 char:3
- $descr = [string]::Format("# {0}", $s.ElementName)
-
+ CategoryInfo : NotSpecified: (:) [], MethodInvocationException + FullyQualifiedErrorId : ArgumentNullException
I forgot to backup default settings. can someone post me original default hidden/unhidden attributes please?
ps - (btw, script works just as it should, i used wind10, administrator account).
Since I have used above script in windows powershell, I have lost all advanced power settings and can not get them back (even the ones I had before are gone now). Windows is diplaying "Energyplaninformation not available" now.
I tried to undo my changes by setting most settings back to +ATTRIB_HIDE and only some to -ATTRIB_HIDE - but it did not work.
See screenshot below.
Any idea how to fix this?

Launch your Registry Editor (Windows button and type “Regedit“)
Navigate to: “Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Power“
Select the entry called ‘CsEnabled‘
Change the “Value data” to “1” and select “OK“ (in the case it's alreaedy 1 try 0 and reboot and again to 1)
Reboot your machine
@banicpe thx very much! Setting Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Power 'CsEnabled‘ to "0" and rebooting, worked for me. I can see all Advanced Energy Options now! Great!
Anyone knows why MS hid those settings in the first place? Is it dangerous to fiddle around with them (e.g. with processor performance settings)?
I have written my own version which works with PowerShell 7 and every Windows version: Unlock-PowerCfg.ps1
# Unlock Power Plans by disabling "Connected Standby"
Set-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Control\Power' -Name 'CSEnabled' -Value 0 -Force
# Unlock hidden options
$PowerSettings = Get-ChildItem -Path 'HKLM:\SYSTEM\CurrentControlSet\Control\Power\PowerSettings' -Recurse -Depth 1 | Where-Object { $_.PSChildName -NotLike 'DefaultPowerSchemeValues' -and $_.PSChildName -NotLike '0' -and $_.PSChildName -NotLike '1' }
ForEach ($item in $PowerSettings) { Set-ItemProperty -Path ($item).Replace('HKEY_LOCAL_MACHINE','HKLM:') -Name 'Attributes' -Value 2 -Force }@Velocet, small fix:
Set-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Control\Power' -Name 'CSEnabled' -Value 0 -Force
# Unlock hidden options
$PowerSettings = Get-ChildItem -Path 'HKLM:\SYSTEM\CurrentControlSet\Control\Power\PowerSettings' -Recurse -Depth 1 | Where-Object { $_.PSChildName -NotLike 'DefaultPowerSchemeValues' -and $_.PSChildName -NotLike '0' -and $_.PSChildName -NotLike '1' }
ForEach ($item in $PowerSettings) { Set-ItemProperty -Path ($item).Name.Replace('HKEY_LOCAL_MACHINE','HKLM:') -Name 'Attributes' -Value 2 -Force }god thank you @Velocet @nick4fake guys!!!
Thanks @Velocet, your script actually works WIN 11 also, your amazing
what would i change to DISABLE all advanced power settings?
Instead of enable all options you can use Power settings GUI editor PowerSettingsExplorer
At least for my solution you don’t enable them: All settings become visible. Thats it.
I also wouldn’t download something from a random mediafire link posted on the internet… 🤨
Sorry, I have updated link to forum thread instead of direct zip
Could someone explain the basics to me? Do you have a video explaining how to install? Or is it just right-clicking and running in PowerShell?
@lucr80 Just copy those lines and paste in a PowerShell.
guys i need to get back to default settings any help ?
Example output: