WindowsBox.Hibernation.psm1

1
2
3
4
5
6
7
8
9
10
11
<#
.Synopsis
    Configures Hibernation
.Description
    This cmdlet configures Windows Hibernation
#>

function Disable-Hibernation {
    Set-ItemProperty HKLM:\SYSTEM\CurrentControlSet\Control\Power\ -name HiberFileSizePercent -value 0
    Set-ItemProperty HKLM:\SYSTEM\CurrentControlSet\Control\Power\ -name HibernateEnabled -value 0
}