Revision 9703f342
b/image_creator/os_type/windows.py | ||
---|---|---|
104 | 104 |
self._guest_exec( |
105 | 105 |
r'REG ADD %s /v RealTimeIsUniversal /t REG_DWORD /d 1 /f' % path) |
106 | 106 |
|
107 |
@sysprep('Clearing the event logs') |
|
108 |
def clear_logs(self): |
|
109 |
"""Clear all the event logs""" |
|
110 |
|
|
111 |
self._guest_exec( |
|
112 |
r"cmd /q /c for /f %l in ('wevtutil el') do wevtutil cl %l") |
|
113 |
|
|
107 | 114 |
@sysprep('Executing sysprep on the image (may take more that 10 minutes)') |
108 | 115 |
def microsoft_sysprep(self): |
109 | 116 |
"""Run the Microsoft System Preparation Tool. This will remove |
Also available in: Unified diff