Last active
February 17, 2025 13:15
-
-
Save AveYo/ded7815eae2f33097b4799150a076bc0 to your computer and use it in GitHub Desktop.
Balanced Gaming power scheme to use while.. gaming, switch back to Balanced when done
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@(set ^ "0=%~f0" -des ') &set 1=%*& powershell -nop -c iex(out-string -i (gc -lit $env:0)) & exit /b ') | |
$tn = 'Tweaked Balanced Power Scheme' #:: AveYo, 2025.02.17 | |
#:: Args / Dialog - to skip the prompt can use commandline parameters or rename script: tweaked_balanced_power_scheme import.bat | |
$cl = @{0 = 'import'; 1 = 'restore'} ; $do = ''; if (!$env:0) {$env:0 = "$pwd\.pasted"} | |
foreach ($a in $cl.Values) { if ("$(split-path $env:0 -leaf) $env:1" -like "*$a*") {$do = $a} } ; if ($do -eq '') { | |
$s0 = powercfg /query 381b4222-f694-41f0-9685-ff5bb260df2f 2>''; $s0 = ('',[char]0x2713)[$?] | |
$choice = (new-object -ComObject Wscript.Shell).Popup("Yes = Import $s0 No = Restore", 0, $tn, 0x1043) | |
if ($choice -eq 2) {break} elseif ($choice -eq 6) {$do = $cl[0]} else {$do = $cl[1]} | |
} | |
$t1 = $do; $t0 = $env:0; $tc = { | |
$open_powercfg = 1 | |
pushd -lit $(split-path $args[0]); $do = $args[1]; $tn = $args[2]; [Console]::Title = "$tn $do" | |
if ($do -eq 'import') { | |
#:: add desktop shortcut to Power Plans | |
$short = "$([Environment]::GetFolderPath('Desktop'))\Power plans.lnk" | |
$s = (new-object -ComObject WScript.Shell).CreateShortcut($short) | |
if (-not (test-path $short) -or $s.Arguments -notmatch 'powercfg.cpl') { | |
$s.Description = "Power plans"; $s.IconLocation = "powercfg.cpl,0" | |
$s.TargetPath = "control"; $s.Arguments = "powercfg.cpl"; $s.Save() | |
} | |
#powercfg /hibernate /size 40 | |
powercfg /setactive SCHEME_BALANCED | |
#:: none\Require a password on wakeup | |
$a = '0e796bdb-100d-47d6-a2d5-f7d2daa51f51'; powercfg -attributes SUB_NONE $a -ATTRIB_HIDE | |
#powercfg /setacvalueindex SCHEME_BALANCED SUB_NONE $a 0 | |
#:: none\Device idle policy | |
$a = '4faab71a-92e5-4726-b531-224559672d19'; powercfg -attributes SUB_NONE $a -ATTRIB_HIDE | |
powercfg /setacvalueindex SCHEME_BALANCED SUB_NONE $a 1 | |
#:: none\Disconnected Standby Mode | |
$a = '68afb2d9-ee95-47a8-8f50-4115088073b1'; powercfg -attributes SUB_NONE $a -ATTRIB_HIDE | |
powercfg /setacvalueindex SCHEME_BALANCED SUB_NONE $a 1 | |
#:: none\Networking connectivity in Standby | |
$a = 'f15576e8-98b7-4186-b944-eafa664402d9'; powercfg -attributes SUB_NONE $a -ATTRIB_HIDE | |
powercfg /setacvalueindex SCHEME_BALANCED SUB_NONE $a 0 | |
#:: Hard disk\AHCI Link | |
$a = '0b2d69d7-a2a1-449c-9680-f91c70521c60'; powercfg -attributes SUB_DISK $a -ATTRIB_HIDE | |
powercfg /setacvalueindex SCHEME_BALANCED SUB_DISK $a 1 | |
#:: Wireless Adapter Settings\Power Saving Mode | |
$a = '12bbebe6-58d6-4636-95bb-3217ef867c1a'; powercfg -attributes 19cbb8fa-5279-450e-9fac-8a3d5fedd0c1 $a -ATTRIB_HIDE | |
powercfg /setacvalueindex SCHEME_BALANCED 19cbb8fa-5279-450e-9fac-8a3d5fedd0c1 $a 0 | |
#:: Sleep\Hibernate after (ms) | |
$a = '9d7815a6-7ee4-497e-8888-515a05f02364'; powercfg -attributes SUB_SLEEP $a -ATTRIB_HIDE | |
powercfg /setacvalueindex SCHEME_BALANCED SUB_SLEEP $a 0 | |
#:: Sleep\Sleep after (ms) | |
$a = '29f6c1db-86da-48c5-9fdb-f2b67b1f44da'; powercfg -attributes SUB_SLEEP $a -ATTRIB_HIDE | |
powercfg /setacvalueindex SCHEME_BALANCED SUB_SLEEP $a 900 | |
#:: Sleep\Allow hybrid sleep | |
$a = '94ac6d29-73ce-41a6-809f-6363ba21b47e'; powercfg -attributes SUB_SLEEP $a -ATTRIB_HIDE | |
powercfg /setacvalueindex SCHEME_BALANCED SUB_SLEEP $a 1 | |
#:: Sleep\Allow wake timers | |
$a = 'bd3b718a-0680-4d9d-8ab2-e1d2b4ac806d'; powercfg -attributes SUB_SLEEP $a -ATTRIB_HIDE | |
powercfg /setacvalueindex SCHEME_BALANCED SUB_SLEEP $a 0 | |
#:: Sleep\Allow sleep with remote opens | |
$a = 'd4c1d4c8-d5cc-43d3-b83e-fc51215cb04d'; powercfg -attributes SUB_SLEEP $a -ATTRIB_HIDE | |
powercfg /setacvalueindex SCHEME_BALANCED SUB_SLEEP $a 0 | |
#:: USB settings\Hub Selective Suspend Timeout (ms) | |
$a = '0853a681-27c8-4100-a2fd-82013e970683'; powercfg -attributes 2a737441-1930-4402-8d77-b2bebba308a3 $a -ATTRIB_HIDE | |
powercfg /setacvalueindex SCHEME_BALANCED 2a737441-1930-4402-8d77-b2bebba308a3 $a 20000 | |
#:: USB settings\USB 3 Link Power Mangement | |
$a = 'd4e98f31-5ffe-4ce1-be31-1b38b384c009'; powercfg -attributes 2a737441-1930-4402-8d77-b2bebba308a3 $a -ATTRIB_HIDE | |
powercfg /setacvalueindex SCHEME_BALANCED 2a737441-1930-4402-8d77-b2bebba308a3 $a 2 | |
#:: Idle Resiliency\Deep Sleep Enabled/Disabled | |
$a = 'd502f7ee-1dc7-4efd-a55d-f04b6f5c0545'; powercfg -attributes SUB_IR $a -ATTRIB_HIDE | |
powercfg /setacvalueindex SCHEME_BALANCED SUB_IR $a 1 | |
#:: Power buttons and lid\Lid close action | |
$a = '5ca83367-6e45-459f-a27b-476b1d01c936'; powercfg -attributes SUB_BUTTONS $a -ATTRIB_HIDE | |
powercfg /setacvalueindex SCHEME_BALANCED SUB_BUTTONS $a 0 | |
#:: PCI Express\Link State | |
$a = 'ee12f906-d277-404b-b6da-e5fa1a576df5'; powercfg -attributes SUB_PCIEXPRESS $a -ATTRIB_HIDE | |
powercfg /setacvalueindex SCHEME_BALANCED SUB_PCIEXPRESS $a 2 | |
#:: Multimedia settings\When sharing media 0=Allow sleep | 1=Prevent sleep | |
$a = '03680956-93bc-4294-bba6-4e0f09bb717f'; powercfg -attributes 9596fb26-9850-41fd-ac3e-f7c3c00afd4b $a -ATTRIB_HIDE | |
powercfg /setacvalueindex SCHEME_BALANCED 9596fb26-9850-41fd-ac3e-f7c3c00afd4b $a 0 2>'' | |
#:: CPU\Processor performance increase threshold for Class 1 (60%) | |
$a = '06cadf0e-64ed-448a-8927-ce7bf90eb35e'; powercfg -attributes SUB_PROCESSOR $a -ATTRIB_HIDE | |
powercfg /setacvalueindex SCHEME_BALANCED SUB_PROCESSOR $a 85 | |
#:: CPU\Processor performance decrease threshold (20%) | |
$a = '12a0ab44-fe28-4fa9-b3bd-4b64f44960a6'; powercfg -attributes SUB_PROCESSOR $a -ATTRIB_HIDE | |
powercfg /setacvalueindex SCHEME_BALANCED SUB_PROCESSOR $a 45 | |
#:: CPU\Processor performance decrease threshold for Class 1 (20%) | |
$a = '12a0ab44-fe28-4fa9-b3bd-4b64f44960a7'; powercfg -attributes SUB_PROCESSOR $a -ATTRIB_HIDE | |
powercfg /setacvalueindex SCHEME_BALANCED SUB_PROCESSOR $a 60 | |
#:: CPU\Processor energy performance preference policy (0%) | |
$a = '36687f9e-e3a5-4dbf-b1dc-15eb381c6863'; powercfg -attributes SUB_PROCESSOR $a -ATTRIB_HIDE | |
powercfg /setacvalueindex SCHEME_BALANCED SUB_PROCESSOR $a 0 | |
#:: CPU\Processor energy performance preference policy for Class 1 (0%) | |
$a = '36687f9e-e3a5-4dbf-b1dc-15eb381c6864'; powercfg -attributes SUB_PROCESSOR $a -ATTRIB_HIDE | |
powercfg /setacvalueindex SCHEME_BALANCED SUB_PROCESSOR $a 0 | |
#:: CPU\Processor performance core parking parked performance state | |
$a = '447235c7-6a8d-4cc0-8e24-9eaf70b96e2b'; powercfg -attributes SUB_PROCESSOR $a -ATTRIB_HIDE | |
powercfg /setacvalueindex SCHEME_BALANCED SUB_PROCESSOR $a 1 | |
#:: CPU\Processor performance core parking parked performance state for Class 1 | |
$a = '447235c7-6a8d-4cc0-8e24-9eaf70b96e2c'; powercfg -attributes SUB_PROCESSOR $a -ATTRIB_HIDE | |
powercfg /setacvalueindex SCHEME_BALANCED SUB_PROCESSOR $a 2 | |
#:: CPU\Processor performance boost policy (60%) | |
$a = '45bcc044-d885-43e2-8605-ee0ec6e96b59'; powercfg -attributes SUB_PROCESSOR $a -ATTRIB_HIDE | |
powercfg /setacvalueindex SCHEME_BALANCED SUB_PROCESSOR $a 100 | |
#:: CPU\Processor performance increase policy | |
$a = '465e1f50-b610-473a-ab58-00d1077dc418'; powercfg -attributes SUB_PROCESSOR $a -ATTRIB_HIDE | |
powercfg /setacvalueindex SCHEME_BALANCED SUB_PROCESSOR $a 2 | |
#:: CPU\Latency sensitivity hint processor performance (99%) | |
$a = '619b7505-003b-4e82-b7a6-4dd29c300971'; powercfg -attributes SUB_PROCESSOR $a -ATTRIB_HIDE | |
powercfg /setacvalueindex SCHEME_BALANCED SUB_PROCESSOR $a 99 | |
#:: CPU\Minimum processor state for Class 1 (1%) | |
$a = '893dee8e-2bef-41e0-89c6-b55d0929964d'; powercfg -attributes SUB_PROCESSOR $a -ATTRIB_HIDE | |
powercfg /setacvalueindex SCHEME_BALANCED SUB_PROCESSOR $a 1 | |
#:: CPU\Processor idle time check (ms) | |
$a = 'c4581c31-89ab-4597-8e2b-9c9cab440e6b'; powercfg -attributes SUB_PROCESSOR $a -ATTRIB_HIDE | |
powercfg /setacvalueindex SCHEME_BALANCED SUB_PROCESSOR $a 50000 | |
#:: CPU\Processor autonomous activity window (ms) | |
$a = 'cfeda3d0-7697-4566-a922-a9086cd49dfa'; powercfg -attributes SUB_PROCESSOR $a -ATTRIB_HIDE | |
powercfg /setacvalueindex SCHEME_BALANCED SUB_PROCESSOR $a 30000 | |
#:: CPU\Processor performance core parking decrease time (10) | |
$a = 'dfd10d17-d5eb-45dd-877a-9a34ddd15c82'; powercfg -attributes SUB_PROCESSOR $a -ATTRIB_HIDE | |
powercfg /setacvalueindex SCHEME_BALANCED SUB_PROCESSOR $a 20 | |
#:: CPU\Processor idle promote threshold | |
$a = '7b224883-b3cc-4d79-819f-8374152cbe7c'; powercfg -attributes SUB_PROCESSOR $a -ATTRIB_HIDE | |
powercfg /setacvalueindex SCHEME_BALANCED SUB_PROCESSOR $a 60 | |
#:: CPU\Processor idle demote threshold | |
$a = '4b92d758-5a24-4851-a470-815d78aee119'; powercfg -attributes SUB_PROCESSOR $a -ATTRIB_HIDE | |
powercfg /setacvalueindex SCHEME_BALANCED SUB_PROCESSOR $a 40 | |
#:: CPU\Processor idle state maximum | |
$a = '9943e905-9a30-4ec1-9b99-44dd3b76f7a2'; powercfg -attributes SUB_PROCESSOR $a -ATTRIB_HIDE | |
powercfg /setacvalueindex SCHEME_BALANCED SUB_PROCESSOR $a 0 | |
#:: Apply advanced entries | |
powercfg /setactive SCHEME_CURRENT | |
#:: Create 'Balanced Gaming' with PCI-E Link State and CPU C-states (C3 C6) off | |
$g = '381b4222-f694-41f0-9685-ff5bb260df2f' | |
powercfg /duplicatescheme SCHEME_BALANCED $g >'' 2>'' | |
$desc = "higher idle power waste with PCI-E Link State and CPU C-states (C3 C6) off" | |
powercfg /changename $g "Balanced Gaming" "Use it while playing then set Balanced back`n$desc" | |
powercfg /setactive $g | |
#:: CPU\Processor idle promote threshold 100 | |
powercfg /setacvalueindex $g SUB_PROCESSOR 7b224883-b3cc-4d79-819f-8374152cbe7c 100 | |
#:: CPU\Processor idle demote threshold 40 | |
powercfg /setacvalueindex $g SUB_PROCESSOR 4b92d758-5a24-4851-a470-815d78aee119 40 | |
#:: CPU\Processor idle state maximum 1 | |
powercfg /setacvalueindex $g SUB_PROCESSOR 9943e905-9a30-4ec1-9b99-44dd3b76f7a2 1 | |
#:: PCI Express\Link State | |
powercfg /setacvalueindex $g SUB_PCIEXPRESS ee12f906-d277-404b-b6da-e5fa1a576df5 0 | |
#:: Apply advanced entries | |
powercfg /setactive SCHEME_CURRENT | |
#:: Activate Balanced scheme | |
powercfg /setactive SCHEME_BALANCED | |
#:: List all schemes | |
powercfg /l | |
write-host "Balanced Gaming sets $desc" -fore Yellow | |
if ($open_powercfg -eq 1) { . control powercfg.cpl } | |
} else { | |
write-host 'Restoring default power schemes' -fore Yellow | |
powercfg -attributes SUB_NONE 0e796bdb-100d-47d6-a2d5-f7d2daa51f51 -ATTRIB_HIDE | |
powercfg -attributes SUB_NONE 245d8541-3943-4422-b025-13a784f679b7 +ATTRIB_HIDE | |
powercfg -attributes SUB_NONE 4faab71a-92e5-4726-b531-224559672d19 +ATTRIB_HIDE | |
powercfg -attributes SUB_NONE 68afb2d9-ee95-47a8-8f50-4115088073b1 +ATTRIB_HIDE | |
powercfg -attributes SUB_NONE f15576e8-98b7-4186-b944-eafa664402d9 +ATTRIB_HIDE | |
powercfg -attributes SUB_DISK 0b2d69d7-a2a1-449c-9680-f91c70521c60 +ATTRIB_HIDE | |
powercfg -attributes SUB_DISK 51dea550-bb38-4bc4-991b-eacf37be5ec8 +ATTRIB_HIDE | |
powercfg -attributes SUB_DISK 6738e2c4-e8a5-4a42-b16a-e040e769756e -ATTRIB_HIDE | |
powercfg -attributes SUB_DISK 80e3c60e-bb94-4ad8-bbe0-0d3195efc663 +ATTRIB_HIDE | |
powercfg -attributes SUB_DISK d3d55efd-c1ff-424e-9dc3-441be7833010 +ATTRIB_HIDE | |
powercfg -attributes SUB_DISK d639518a-e56d-4345-8af2-b9f32fb26109 +ATTRIB_HIDE | |
powercfg -attributes SUB_DISK dab60367-53fe-4fbc-825e-521d069d2456 +ATTRIB_HIDE | |
powercfg -attributes SUB_DISK dbc9e238-6de9-49e3-92cd-8c2b4946b472 +ATTRIB_HIDE | |
powercfg -attributes SUB_DISK fc7372b6-ab2d-43ee-8797-15e9841f2cca +ATTRIB_HIDE | |
powercfg -attributes SUB_DISK fc95af4d-40e7-4b6d-835a-56d131dbc80e +ATTRIB_HIDE | |
powercfg -attributes 0d7dbae2-4294-402a-ba8e-26777e8488cd 309dce9b-bef4-4119-9921-a851fb12f0f4 -ATTRIB_HIDE | |
powercfg -attributes 19cbb8fa-5279-450e-9fac-8a3d5fedd0c1 12bbebe6-58d6-4636-95bb-3217ef867c1a -ATTRIB_HIDE | |
powercfg -attributes SUB_SLEEP 1a34bdc3-7e6b-442e-a9d0-64b6ef378e84 +ATTRIB_HIDE | |
powercfg -attributes SUB_SLEEP 25dfa149-5dd1-4736-b5ab-e8a37b5b8187 +ATTRIB_HIDE | |
powercfg -attributes SUB_SLEEP 29f6c1db-86da-48c5-9fdb-f2b67b1f44da -ATTRIB_HIDE | |
powercfg -attributes SUB_SLEEP 7bc4a2f9-d8fc-4469-b07b-33eb785aaca0 +ATTRIB_HIDE | |
powercfg -attributes SUB_SLEEP 94ac6d29-73ce-41a6-809f-6363ba21b47e -ATTRIB_HIDE | |
powercfg -attributes SUB_SLEEP 9d7815a6-7ee4-497e-8888-515a05f02364 -ATTRIB_HIDE | |
powercfg -attributes SUB_SLEEP a4b195f5-8225-47d8-8012-9d41369786e2 +ATTRIB_HIDE | |
powercfg -attributes SUB_SLEEP abfc2519-3608-4c2a-94ea-171b0ed546ab +ATTRIB_HIDE | |
powercfg -attributes SUB_SLEEP bd3b718a-0680-4d9d-8ab2-e1d2b4ac806d -ATTRIB_HIDE | |
powercfg -attributes SUB_SLEEP d4c1d4c8-d5cc-43d3-b83e-fc51215cb04d +ATTRIB_HIDE | |
powercfg -attributes 2a737441-1930-4402-8d77-b2bebba308a3 0853a681-27c8-4100-a2fd-82013e970683 +ATTRIB_HIDE | |
powercfg -attributes 2a737441-1930-4402-8d77-b2bebba308a3 48e6b7a6-50f5-4782-a5d4-53bb8f07e226 -ATTRIB_HIDE | |
powercfg -attributes 2a737441-1930-4402-8d77-b2bebba308a3 498c044a-201b-4631-a522-5c744ed4e678 +ATTRIB_HIDE | |
powercfg -attributes 2a737441-1930-4402-8d77-b2bebba308a3 d4e98f31-5ffe-4ce1-be31-1b38b384c009 +ATTRIB_HIDE | |
powercfg -attributes SUB_IR 3166bc41-7e98-4e03-b34e-ec0f5f2b218e +ATTRIB_HIDE | |
powercfg -attributes SUB_IR c36f0eb4-2988-4a70-8eee-0884fc2c2433 +ATTRIB_HIDE | |
powercfg -attributes SUB_IR c42b79aa-aa3a-484b-a98f-2cf32aa90a28 +ATTRIB_HIDE | |
powercfg -attributes SUB_IR d502f7ee-1dc7-4efd-a55d-f04b6f5c0545 +ATTRIB_HIDE | |
powercfg -attributes SUB_INTSTEER 2bfc24f9-5ea2-4801-8213-3dbae01aa39d +ATTRIB_HIDE | |
powercfg -attributes SUB_INTSTEER 73cde64d-d720-4bb2-a860-c755afe77ef2 +ATTRIB_HIDE | |
powercfg -attributes SUB_INTSTEER d6ba4903-386f-4c2c-8adb-5c21b3328d25 +ATTRIB_HIDE | |
powercfg -attributes SUB_BUTTONS 5ca83367-6e45-459f-a27b-476b1d01c936 -ATTRIB_HIDE | |
powercfg -attributes SUB_BUTTONS 7648efa3-dd9c-4e3e-b566-50f929386280 -ATTRIB_HIDE | |
powercfg -attributes SUB_BUTTONS 833a6b62-dfa4-46d1-82f8-e09e34d029d6 -ATTRIB_HIDE | |
powercfg -attributes SUB_BUTTONS 96996bc0-ad50-47ec-923b-6f41874dd9eb -ATTRIB_HIDE | |
powercfg -attributes SUB_BUTTONS 99ff10e7-23b1-4c07-a9d1-5c3206d741b4 -ATTRIB_HIDE | |
powercfg -attributes SUB_BUTTONS a7066653-8d6c-40a8-910e-a1f54b84c7e5 -ATTRIB_HIDE | |
powercfg -attributes SUB_PCIEXPRESS ee12f906-d277-404b-b6da-e5fa1a576df5 -ATTRIB_HIDE | |
powercfg -attributes SUB_PROCESSOR 06cadf0e-64ed-448a-8927-ce7bf90eb35d +ATTRIB_HIDE | |
powercfg -attributes SUB_PROCESSOR f8861c27-95e7-475c-865b-13c0cb3f9d6b +ATTRIB_HIDE | |
powercfg -attributes SUB_PROCESSOR 06cadf0e-64ed-448a-8927-ce7bf90eb35e +ATTRIB_HIDE | |
powercfg -attributes SUB_PROCESSOR 0cc5b647-c1df-4637-891a-dec35c318583 +ATTRIB_HIDE | |
powercfg -attributes SUB_PROCESSOR 0cc5b647-c1df-4637-891a-dec35c318584 +ATTRIB_HIDE | |
powercfg -attributes SUB_PROCESSOR 12a0ab44-fe28-4fa9-b3bd-4b64f44960a6 +ATTRIB_HIDE | |
powercfg -attributes SUB_PROCESSOR 12a0ab44-fe28-4fa9-b3bd-4b64f44960a7 +ATTRIB_HIDE | |
powercfg -attributes SUB_PROCESSOR 1facfc65-a930-4bc5-9f38-504ec097bbc0 +ATTRIB_HIDE | |
powercfg -attributes SUB_PROCESSOR 2430ab6f-a520-44a2-9601-f7f23b5134b1 +ATTRIB_HIDE | |
powercfg -attributes SUB_PROCESSOR 2ddd5a84-5a71-437e-912a-db0b8c788732 +ATTRIB_HIDE | |
powercfg -attributes SUB_PROCESSOR 36687f9e-e3a5-4dbf-b1dc-15eb381c6863 +ATTRIB_HIDE | |
powercfg -attributes SUB_PROCESSOR 36687f9e-e3a5-4dbf-b1dc-15eb381c6864 +ATTRIB_HIDE | |
powercfg -attributes SUB_PROCESSOR 3b04d4fd-1cc7-4f23-ab1c-d1337819c4bb +ATTRIB_HIDE | |
powercfg -attributes SUB_PROCESSOR 4009efa7-e72d-4cba-9edf-91084ea8cbc3 +ATTRIB_HIDE | |
powercfg -attributes SUB_PROCESSOR 40fbefc7-2e9d-4d25-a185-0cfd8574bac6 +ATTRIB_HIDE | |
powercfg -attributes SUB_PROCESSOR 40fbefc7-2e9d-4d25-a185-0cfd8574bac7 +ATTRIB_HIDE | |
powercfg -attributes SUB_PROCESSOR 447235c7-6a8d-4cc0-8e24-9eaf70b96e2b +ATTRIB_HIDE | |
powercfg -attributes SUB_PROCESSOR 447235c7-6a8d-4cc0-8e24-9eaf70b96e2c +ATTRIB_HIDE | |
powercfg -attributes SUB_PROCESSOR 45bcc044-d885-43e2-8605-ee0ec6e96b59 +ATTRIB_HIDE | |
powercfg -attributes SUB_PROCESSOR 465e1f50-b610-473a-ab58-00d1077dc418 +ATTRIB_HIDE | |
powercfg -attributes SUB_PROCESSOR 465e1f50-b610-473a-ab58-00d1077dc419 +ATTRIB_HIDE | |
powercfg -attributes SUB_PROCESSOR 4b92d758-5a24-4851-a470-815d78aee119 +ATTRIB_HIDE | |
powercfg -attributes SUB_PROCESSOR 4bdaf4e9-d103-46d7-a5f0-6280121616ef +ATTRIB_HIDE | |
powercfg -attributes SUB_PROCESSOR 4d2b0152-7d5c-498b-88e2-34345392a2c5 +ATTRIB_HIDE | |
powercfg -attributes SUB_PROCESSOR 4e4450b3-6179-4e91-b8f1-5bb9938f81a1 +ATTRIB_HIDE | |
powercfg -attributes SUB_PROCESSOR 5d76a2ca-e8c0-402f-a133-2158492d58ad +ATTRIB_HIDE | |
powercfg -attributes SUB_PROCESSOR 616cdaa5-695e-4545-97ad-97dc2d1bdd88 +ATTRIB_HIDE | |
powercfg -attributes SUB_PROCESSOR 616cdaa5-695e-4545-97ad-97dc2d1bdd89 +ATTRIB_HIDE | |
powercfg -attributes SUB_PROCESSOR 619b7505-003b-4e82-b7a6-4dd29c300971 +ATTRIB_HIDE | |
powercfg -attributes SUB_PROCESSOR 619b7505-003b-4e82-b7a6-4dd29c300972 +ATTRIB_HIDE | |
powercfg -attributes SUB_PROCESSOR 6c2993b0-8f48-481f-bcc6-00dd2742aa06 +ATTRIB_HIDE | |
powercfg -attributes SUB_PROCESSOR 71021b41-c749-4d21-be74-a00f335d582b +ATTRIB_HIDE | |
powercfg -attributes SUB_PROCESSOR 75b0ae3f-bce0-45a7-8c89-c9611c25e100 +ATTRIB_HIDE | |
powercfg -attributes SUB_PROCESSOR 75b0ae3f-bce0-45a7-8c89-c9611c25e101 +ATTRIB_HIDE | |
powercfg -attributes SUB_PROCESSOR 7b224883-b3cc-4d79-819f-8374152cbe7c +ATTRIB_HIDE | |
powercfg -attributes SUB_PROCESSOR 7d24baa7-0b84-480f-840c-1b0743c00f5f +ATTRIB_HIDE | |
powercfg -attributes SUB_PROCESSOR 7d24baa7-0b84-480f-840c-1b0743c00f60 +ATTRIB_HIDE | |
powercfg -attributes SUB_PROCESSOR 7f2492b6-60b1-45e5-ae55-773f8cd5caec +ATTRIB_HIDE | |
powercfg -attributes SUB_PROCESSOR 7f2f5cfa-f10c-4823-b5e1-e93ae85f46b5 +ATTRIB_HIDE | |
powercfg -attributes SUB_PROCESSOR 893dee8e-2bef-41e0-89c6-b55d0929964c -ATTRIB_HIDE | |
powercfg -attributes SUB_PROCESSOR 893dee8e-2bef-41e0-89c6-b55d0929964d +ATTRIB_HIDE | |
powercfg -attributes SUB_PROCESSOR 8baa4a8a-14c6-4451-8e8b-14bdbd197537 +ATTRIB_HIDE | |
powercfg -attributes SUB_PROCESSOR 93b8b6dc-0698-4d1c-9ee4-0644e900c85d +ATTRIB_HIDE | |
powercfg -attributes SUB_PROCESSOR 943c8cb6-6f93-4227-ad87-e9a3feec08d1 +ATTRIB_HIDE | |
powercfg -attributes SUB_PROCESSOR 94d3a615-a899-4ac5-ae2b-e4d8f634367f -ATTRIB_HIDE | |
powercfg -attributes SUB_PROCESSOR 97cfac41-2217-47eb-992d-618b1977c907 +ATTRIB_HIDE | |
powercfg -attributes SUB_PROCESSOR 984cf492-3bed-4488-a8f9-4286c97bf5aa +ATTRIB_HIDE | |
powercfg -attributes SUB_PROCESSOR 984cf492-3bed-4488-a8f9-4286c97bf5ab +ATTRIB_HIDE | |
powercfg -attributes SUB_PROCESSOR 9943e905-9a30-4ec1-9b99-44dd3b76f7a2 +ATTRIB_HIDE | |
powercfg -attributes SUB_PROCESSOR b000397d-9b0b-483d-98c9-692a6060cfbf +ATTRIB_HIDE | |
powercfg -attributes SUB_PROCESSOR bae08b81-2d5e-4688-ad6a-13243356654b +ATTRIB_HIDE | |
powercfg -attributes SUB_PROCESSOR bc5038f7-23e0-4960-96da-33abaf5935ec -ATTRIB_HIDE | |
powercfg -attributes SUB_PROCESSOR bc5038f7-23e0-4960-96da-33abaf5935ed +ATTRIB_HIDE | |
powercfg -attributes SUB_PROCESSOR be337238-0d82-4146-a960-4f3749d470c7 +ATTRIB_HIDE | |
powercfg -attributes SUB_PROCESSOR c4581c31-89ab-4597-8e2b-9c9cab440e6b +ATTRIB_HIDE | |
powercfg -attributes SUB_PROCESSOR c7be0679-2817-4d69-9d02-519a537ed0c6 +ATTRIB_HIDE | |
powercfg -attributes SUB_PROCESSOR cfeda3d0-7697-4566-a922-a9086cd49dfa +ATTRIB_HIDE | |
powercfg -attributes SUB_PROCESSOR d8edeb9b-95cf-4f95-a73c-b061973693c8 +ATTRIB_HIDE | |
powercfg -attributes SUB_PROCESSOR d8edeb9b-95cf-4f95-a73c-b061973693c9 +ATTRIB_HIDE | |
powercfg -attributes SUB_PROCESSOR dfd10d17-d5eb-45dd-877a-9a34ddd15c82 +ATTRIB_HIDE | |
powercfg -attributes SUB_PROCESSOR e0007330-f589-42ed-a401-5ddb10e785d3 +ATTRIB_HIDE | |
powercfg -attributes SUB_PROCESSOR ea062031-0e34-4ff1-9b6d-eb1059334028 +ATTRIB_HIDE | |
powercfg -attributes SUB_PROCESSOR ea062031-0e34-4ff1-9b6d-eb1059334029 +ATTRIB_HIDE | |
powercfg -attributes SUB_PROCESSOR f735a673-2066-4f80-a0c5-ddee0cf1bf5d +ATTRIB_HIDE | |
powercfg -attributes SUB_PROCESSOR fddc842b-8364-4edc-94cf-c17f60de1c80 +ATTRIB_HIDE | |
powercfg -attributes SUB_GRAPHICS dd848b2a-8a5d-4451-9ae2-39cd41658f6c +ATTRIB_HIDE | |
powercfg -attributes SUB_VIDEO 17aaa29b-8b43-4b94-aafe-35f64daaf1ee -ATTRIB_HIDE | |
powercfg -attributes SUB_VIDEO 3c0bc021-c8a8-4e07-a973-6b14cbcb2b7e -ATTRIB_HIDE | |
powercfg -attributes SUB_VIDEO 684c3e69-a4f7-4014-8754-d45179a56167 +ATTRIB_HIDE | |
powercfg -attributes SUB_VIDEO 8ec4b3a5-6868-48c2-be75-4f3044be88a7 +ATTRIB_HIDE | |
powercfg -attributes SUB_VIDEO 90959d22-d6a1-49b9-af93-bce885ad335b +ATTRIB_HIDE | |
powercfg -attributes SUB_VIDEO a9ceb8da-cd46-44fb-a98b-02af69de4623 +ATTRIB_HIDE | |
powercfg -attributes SUB_VIDEO aded5e82-b909-4619-9949-f5d71dac0bcb -ATTRIB_HIDE | |
powercfg -attributes SUB_VIDEO f1fbfde2-a960-4165-9f88-50667911ce96 -ATTRIB_HIDE | |
powercfg -attributes SUB_VIDEO fbd9aa66-9553-4097-ba44-ed6e9d65eab8 -ATTRIB_HIDE | |
powercfg -attributes SUB_PRESENCE 468fe7e5-1158-46ec-88bc-5b96c9e44fd0 +ATTRIB_HIDE | |
powercfg -attributes SUB_PRESENCE 49cb11a5-56e2-4afb-9d38-3df47872e21b +ATTRIB_HIDE | |
powercfg -attributes SUB_PRESENCE 5adbbfbc-074e-4da1-ba38-db8b36b2c8f3 +ATTRIB_HIDE | |
powercfg -attributes SUB_PRESENCE 60c07fe1-0556-45cf-9903-d56e32210242 +ATTRIB_HIDE | |
powercfg -attributes SUB_PRESENCE 82011705-fb95-4d46-8d35-4042b1d20def +ATTRIB_HIDE | |
powercfg -attributes SUB_PRESENCE 9fe527be-1b70-48da-930d-7bcf17b44990 +ATTRIB_HIDE | |
powercfg -attributes SUB_PRESENCE c763ee92-71e8-4127-84eb-f6ed043a3e3d +ATTRIB_HIDE | |
powercfg -attributes 9596fb26-9850-41fd-ac3e-f7c3c00afd4b 10778347-1370-4ee0-8bbd-33bdacaade49 -ATTRIB_HIDE | |
powercfg -attributes 9596fb26-9850-41fd-ac3e-f7c3c00afd4b 34c7b99f-9a6d-4b3c-8dc7-b6693b78cef4 -ATTRIB_HIDE | |
powercfg -attributes SUB_ENERGYSAVER 13d09884-f74e-474a-a852-b6bde8ad03a8 +ATTRIB_HIDE | |
powercfg -attributes SUB_ENERGYSAVER 5c5bb349-ad29-4ee2-9d0b-2b25270f7a81 +ATTRIB_HIDE | |
powercfg -attributes SUB_ENERGYSAVER e69653ca-cf7f-4f05-aa73-cb833fa90ad4 +ATTRIB_HIDE | |
powercfg -attributes SUB_BATTERY 5dbb7c9f-38e9-40d2-9749-4f8a0e9f640f -ATTRIB_HIDE | |
powercfg -attributes SUB_BATTERY 637ea02f-bbcb-4015-8e2c-a1c7b9c0b546 -ATTRIB_HIDE | |
powercfg -attributes SUB_BATTERY 8183ba9a-e910-48da-8769-14ae6dc1170a -ATTRIB_HIDE | |
powercfg -attributes SUB_BATTERY 9a66d8d7-4ff7-4ef9-b5a2-5a326ca2a469 -ATTRIB_HIDE | |
powercfg -attributes SUB_BATTERY bcded951-187b-4d05-bccc-f7e51960c258 -ATTRIB_HIDE | |
powercfg -attributes SUB_BATTERY d8742dcb-3e6a-4b3c-b3fe-374623cdcf06 -ATTRIB_HIDE | |
powercfg -attributes SUB_BATTERY f3c5027d-cd16-4930-aa6b-90db844a8f00 -ATTRIB_HIDE | |
powercfg /setactive SCHEME_MIN | |
powercfg /restoredefaultschemes | |
powercfg /setactive SCHEME_BALANCED | |
powercfg /l | |
} | |
} | |
#:: Elevate | |
if ([Security.Principal.WindowsIdentity]::GetCurrent().Groups.Value -notcontains 'S-1-5-32-544') { | |
write-host " '$tn' Requesting ADMIN rights.. " -fore Black -back Yellow; sleep 2; pushd ~ | |
sp HKCU:\Volatile*\* $tn ".{$tc} '$($t0-replace"'","''")' '$($t1-replace"'","''")' '$tn'" -force -ea 0 | |
start powershell -args "-nop -c iex(gp Registry::HKU\S-1-5-21*\Volatile*\* '$tn' -ea 0).'$tn'" -verb runas; popd | |
} else {. $tc $t0 $t1 $tn } | |
$Press_Enter_if_pasted_in_powershell |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
* text=auto | |
* eol=crlf |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment