diff --git a/.bin/Scripts/functions/setup.py b/.bin/Scripts/functions/setup.py index 7ca76b52..908bd2db 100644 --- a/.bin/Scripts/functions/setup.py +++ b/.bin/Scripts/functions/setup.py @@ -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) diff --git a/.bin/Scripts/system_checklist.py b/.bin/Scripts/system_checklist.py index a4ed9893..585a5e10 100644 --- a/.bin/Scripts/system_checklist.py +++ b/.bin/Scripts/system_checklist.py @@ -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') diff --git a/.bin/Scripts/system_checklist_hw.py b/.bin/Scripts/system_checklist_hw.py index bac5f2dd..aa918796 100644 --- a/.bin/Scripts/system_checklist_hw.py +++ b/.bin/Scripts/system_checklist_hw.py @@ -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')