windows: Enable hibernation

Signed-off-by: Filip Gołaś <filip.golas@3mdeb.com>
This commit is contained in:
Filip Gołaś
2026-02-24 08:41:04 +01:00
parent 7f9d095c96
commit 4d2f1f84ab
2 changed files with 8 additions and 0 deletions
+6
View File
@@ -172,6 +172,12 @@ https://schneegans.de/windows/unattend-generator/?LanguageMode=Unattended&UILang
<Description>Disable recovery</Description>
<RequiresUserInput>false</RequiresUserInput>
<CommandLine>powershell.exe -NoProfile -ExecutionPolicy Bypass -File C:\Users\Public\Desktop\custom_data\disable-recovery.ps1 *> C:\Users\Public\Desktop\custom_data\disable-recovery.log ;</CommandLine>
</SynchronousCommand>
<SynchronousCommand wcm:action="add">
<Order>11</Order>
<Description>Enable hibernation</Description>
<RequiresUserInput>false</RequiresUserInput>
<CommandLine>powershell.exe -NoProfile -ExecutionPolicy Bypass -File C:\Users\Public\Desktop\custom_data\enable-hibernation.ps1 *> C:\Users\Public\Desktop\custom_data\enable-hibernation.log ;</CommandLine>
</SynchronousCommand>
</FirstLogonCommands>
</component>
@@ -0,0 +1,2 @@
powercfg /h on
powercfg /h /type full