diff --git a/image_creator/os_type/windows.py b/image_creator/os_type/windows.py index 4d807eaac9c87af4c3ce733b45d86d358d2150b7..3e38aa3bf8cfda2aba2d3cf28b568aa5a39ec0e0 100644 --- a/image_creator/os_type/windows.py +++ b/image_creator/os_type/windows.py @@ -89,6 +89,12 @@ class Windows(OSBase): self._guest_exec('netsh firewall set icmpsetting 8') + @sysprep('Disabling hibernation support') + def disable_hibernation(self): + """Disable hibernation support and remove the hibernation file""" + + self._guest_exec(r'powercfg.exe /hibernate off') + @sysprep('Setting the system clock to UTC') def utc(self): """Set the hardware clock to UTC"""