forked from LeDragoX/Win-Debloat-Tools
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathOptimize-PowerSettings.ps1
More file actions
32 lines (29 loc) · 1.2 KB
/
Optimize-PowerSettings.ps1
File metadata and controls
32 lines (29 loc) · 1.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# Syntax
# powercfg [Options]
# /Change settingvalue
# /x setting value
# Modify one of the following settings in the current power scheme:
# monitor-timeout-ac minutes
# monitor-timeout-dc minutes
# disk-timeout-ac minutes
# disk-timeout-dc minutes
# standby-timeout-ac minutes
# standby-timeout-dc minutes
# hibernate-timeout-ac minutes
# hibernate-timeout-dc minutes
# Setting any value to 0 will set the timeout=Never
# AC settings are used when the system is on AC power. DC settings on battery power.
# /Hibernate [on|off]
# /H [on|off]
# Enable or disable the hibernate feature.
# This will also turn off Fast Startup (or hybrid sleep)
# Hibernate timeout is not supported on all computers.
Powercfg /Hibernate on
Powercfg /Change monitor-timeout-ac 5
Powercfg /Change disk-timeout-ac 5
Powercfg /Change standby-timeout-ac 0
Powercfg /Change hibernate-timeout-ac 0
Powercfg /Change monitor-timeout-dc 2
Powercfg /Change disk-timeout-dc 2
Powercfg /Change standby-timeout-dc 10
Powercfg /Change hibernate-timeout-dc 180