Create Restore Point during system checklists

* Fixes issue #31
This commit is contained in:
2Shirt 2019-01-08 22:05:57 -07:00
parent 931ce84d67
commit 6068b4390a
Signed by: 2Shirt
GPG key ID: 152FAC923B0E132C
3 changed files with 14 additions and 0 deletions

View file

@ -208,6 +208,16 @@ def config_explorer_user():
write_registry_settings(SETTINGS_EXPLORER_USER, all_users=False)
def create_system_restore_point():
"""Create system restore point."""
cmd = [
'PowerShell',
'-Command', 'Checkpoint-Computer',
'-Description', '1201 Checklist',
]
run_program(cmd)
def disable_windows_telemetry():
"""Disable Windows 10 telemetry settings with O&O ShutUp10."""
extract_item('ShutUp10', silent=True)

View file

@ -50,6 +50,8 @@ if __name__ == '__main__':
function=enable_regback, cs='Done')
try_and_print(message='Enabling System Restore...',
function=enable_system_restore, cs='Done')
try_and_print(message='Create System Restore point...',
function=create_system_restore_point, cs='Done')
try_and_print(message='Updating Clock...',
function=update_clock, cs='Done')

View file

@ -46,6 +46,8 @@ if __name__ == '__main__':
function=enable_regback, cs='Done')
try_and_print(message='Enabling System Restore...',
function=enable_system_restore, cs='Done')
try_and_print(message='Create System Restore point...',
function=create_system_restore_point, cs='Done')
# Export system info
print_info('Backup System Information')