Adjusted RegBack sections

* Labeled more accurately in system checklists
* Isolated into a separate enable_regback() function
This commit is contained in:
2Shirt 2018-10-12 16:41:51 -06:00
parent 05a9245a4c
commit 26e8c93282
3 changed files with 16 additions and 18 deletions

View file

@ -41,12 +41,6 @@ SETTINGS_ESET = {
},
},
}
SETTINGS_EXPLORER_SYSTEM_HW = {
# Enable RegBack
r'System\CurrentControlSet\Control\Session Manager\Configuration Manager': {
'DWORD Items': {'EnablePeriodicBackup': 1},
},
}
SETTINGS_EXPLORER_SYSTEM = {
# Disable Location Tracking
r'Software\Microsoft\Windows NT\CurrentVersion\Sensor\Overrides\{BFA794E4-F964-4FDB-90F6-51056BFE4B44}': {
@ -73,10 +67,6 @@ SETTINGS_EXPLORER_SYSTEM = {
r'Software\Microsoft\PolicyManager\default\WiFi\AllowAutoConnectToWiFiSenseHotspots': {
'DWORD Items': {'Value': 0},
},
# Enable RegBack
r'System\CurrentControlSet\Control\Session Manager\Configuration Manager': {
'DWORD Items': {'EnablePeriodicBackup': 1},
},
}
SETTINGS_EXPLORER_USER = {
# Disable silently installed apps
@ -125,6 +115,12 @@ SETTINGS_MOZILLA_FIREFOX_64 = {
'uBlock0@raymondhill.net': MOZILLA_FIREFOX_UBO_PATH},
},
}
SETTINGS_REGBACK = {
# Enable RegBack
r'System\CurrentControlSet\Control\Session Manager\Configuration Manager': {
'DWORD Items': {'EnablePeriodicBackup': 1},
},
}
VCR_REDISTS = [
{'Name': 'Visual C++ 2010 x32...',
'Cmd': [r'2010sp1\x32\vcredist.exe', '/passive', '/norestart']},
@ -200,10 +196,6 @@ def config_classicstart():
sleep(1)
popen_program(cs_exe)
def config_explorer_system_hw():
"""Configure Windows Explorer for all users via Registry settings (HW)."""
write_registry_settings(SETTINGS_EXPLORER_SYSTEM_HW, all_users=True)
def config_explorer_system():
"""Configure Windows Explorer for all users via Registry settings."""
write_registry_settings(SETTINGS_EXPLORER_SYSTEM, all_users=True)
@ -221,6 +213,10 @@ def config_privacy_settings():
'/quiet']
run_program(cmd)
def enable_regback():
"""Enable RegBack."""
write_registry_settings(SETTINGS_REGBACK, all_users=True)
def enable_system_restore():
"""Enable System Restore and set disk usage to 5%"""
cmd = [

View file

@ -47,10 +47,12 @@ if __name__ == '__main__':
function=config_explorer_system, cs='Done')
try_and_print(message='Privacy...',
function=config_privacy_settings, cs='Done')
try_and_print(message='Updating Clock...',
function=update_clock, cs='Done')
try_and_print(message='Enabling RegBack...',
function=enable_regback, cs='Done')
try_and_print(message='Enabling System Restore...',
function=enable_system_restore, cs='Done')
try_and_print(message='Updating Clock...',
function=update_clock, cs='Done')
# Cleanup
print_info('Cleanup')

View file

@ -42,8 +42,8 @@ if __name__ == '__main__':
# Configure
print_info('Configure')
if global_vars['OS']['Version'] == '10':
try_and_print(message='Explorer...',
function=config_explorer_system_hw, cs='Done')
try_and_print(message='Enabling RegBack...',
function=enable_regback, cs='Done')
try_and_print(message='Enabling System Restore...',
function=enable_system_restore, cs='Done')