Create ResetHighPerformancePowerProfiletoDefaults.ps1

Script resets monitor, disk, standby, and hibernate timers in the default High Performance power profile to their default values.
It also re-indexes the AC and DC power profiles into their default order.
This commit is contained in:
azulskyknight 2021-01-04 13:19:03 -07:00 committed by GitHub
parent 6bb2eb25a1
commit 3899680e26
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 10 additions and 0 deletions

View File

@ -0,0 +1,10 @@
Start-Process -FilePath 'powercfg.exe' -ArgumentList '-x -monitor-timeout-ac 15'
Start-Process -FilePath 'powercfg.exe' -ArgumentList '-x -disk-timeout-ac 0'
Start-Process -FilePath 'powercfg.exe' -ArgumentList '-x -standby-timeout-ac 0'
Start-Process -FilePath 'powercfg.exe' -ArgumentList '-x -hibernate-timeout-ac 0'
Start-Process -FilePath 'powercfg.exe' -ArgumentList '-setacvalueindex SCHEME_CURRENT 4f971e89-eebd-4455-a8de-9e59040e7347 5ca83367-6e45-459f-a27b-476b1d01c936 0'
Start-Process -FilePath 'powercfg.exe' -ArgumentList '-x -monitor-timeout-dc 10'
Start-Process -FilePath 'powercfg.exe' -ArgumentList '-x -disk-timeout-dc 0'
Start-Process -FilePath 'powercfg.exe' -ArgumentList '-x -standby-timeout-dc 20'
Start-Process -FilePath 'powercfg.exe' -ArgumentList '-x -hibernate-timeout-dc 0'
Start-Process -FilePath 'powercfg.exe' -ArgumentList '-setdcvalueindex SCHEME_CURRENT 4f971e89-eebd-4455-a8de-9e59040e7347 5ca83367-6e45-459f-a27b-476b1d01c936 1'