From 811b7149586a8eb83d54e32e1dbff377131e7d0b Mon Sep 17 00:00:00 2001 From: Nikos Skalkotos Date: Wed, 10 Jul 2013 10:27:25 +0300 Subject: [PATCH] Add new windows sysprep for disabling hibernation --- image_creator/os_type/windows.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/image_creator/os_type/windows.py b/image_creator/os_type/windows.py index 4d807ea..3e38aa3 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""" -- 1.7.10.4