Set Hibernation as default (good for laptops)

config/tweaks.json
 85  "WPFTweaksLaptopHibernation": {
 86    "Content": "Set Hibernation as default (good for laptops)",
 87    "Description": "Most modern laptops have connected standby enabled which drains the battery, this sets hibernation as default which will not drain the battery. See issue https://github.com/ChrisTitusTech/winutil/issues/1399",
 88    "category": "z__Advanced Tweaks - CAUTION",
 89    "panel": "1",
 90    "Order": "a030_",
 91    "registry": [
 92      {
 93        "Path": "HKLM:\\SYSTEM\\CurrentControlSet\\Control\\Power\\PowerSettings\\238C9FA8-0AAD-41ED-83F4-97BE242C8F20\\7bc4a2f9-d8fc-4469-b07b-33eb785aaca0",
 94        "OriginalValue": "1",
 95        "Name": "Attributes",
 96        "Value": "2",
 97        "Type": "DWord"
 98      },
 99      {
100        "Path": "HKLM:\\SYSTEM\\CurrentControlSet\\Control\\Power\\PowerSettings\\abfc2519-3608-4c2a-94ea-171b0ed546ab\\94ac6d29-73ce-41a6-809f-6363ba21b47e",
101        "OriginalValue": "0",
102        "Name": "Attributes ",
103        "Value": "2",
104        "Type": "DWord"
105      }
106    ],
107    "InvokeScript": [
108      "
109      Write-Host \"Turn on Hibernation\"
110      powercfg.exe /hibernate on
111
112      # Set hibernation as the default action
113      powercfg.exe change standby-timeout-ac 60
114      powercfg.exe change standby-timeout-dc 60
115      powercfg.exe change monitor-timeout-ac 10
116      powercfg.exe change monitor-timeout-dc 1
117      "
118    ],
119    "UndoScript": [
120      "
121      Write-Host \"Turn off Hibernation\"
122      powercfg.exe /hibernate off
123
124      # Set standby to default values
125      powercfg.exe change standby-timeout-ac 15
126      powercfg.exe change standby-timeout-dc 15
127      powercfg.exe change monitor-timeout-ac 15
128      powercfg.exe change monitor-timeout-dc 15
129      "
130    ],

Registry Changes

Applications and System Components store and retrieve configuration data to modify windows settings, so we can use the registry to change many settings in one place.

You can find information about the registry on Wikipedia and Microsoft’s Website.