Adjusted RegBack sections
* Labeled more accurately in system checklists * Isolated into a separate enable_regback() function
This commit is contained in:
parent
05a9245a4c
commit
26e8c93282
3 changed files with 16 additions and 18 deletions
|
|
@ -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 = {
|
SETTINGS_EXPLORER_SYSTEM = {
|
||||||
# Disable Location Tracking
|
# Disable Location Tracking
|
||||||
r'Software\Microsoft\Windows NT\CurrentVersion\Sensor\Overrides\{BFA794E4-F964-4FDB-90F6-51056BFE4B44}': {
|
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': {
|
r'Software\Microsoft\PolicyManager\default\WiFi\AllowAutoConnectToWiFiSenseHotspots': {
|
||||||
'DWORD Items': {'Value': 0},
|
'DWORD Items': {'Value': 0},
|
||||||
},
|
},
|
||||||
# Enable RegBack
|
|
||||||
r'System\CurrentControlSet\Control\Session Manager\Configuration Manager': {
|
|
||||||
'DWORD Items': {'EnablePeriodicBackup': 1},
|
|
||||||
},
|
|
||||||
}
|
}
|
||||||
SETTINGS_EXPLORER_USER = {
|
SETTINGS_EXPLORER_USER = {
|
||||||
# Disable silently installed apps
|
# Disable silently installed apps
|
||||||
|
|
@ -125,6 +115,12 @@ SETTINGS_MOZILLA_FIREFOX_64 = {
|
||||||
'uBlock0@raymondhill.net': MOZILLA_FIREFOX_UBO_PATH},
|
'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 = [
|
VCR_REDISTS = [
|
||||||
{'Name': 'Visual C++ 2010 x32...',
|
{'Name': 'Visual C++ 2010 x32...',
|
||||||
'Cmd': [r'2010sp1\x32\vcredist.exe', '/passive', '/norestart']},
|
'Cmd': [r'2010sp1\x32\vcredist.exe', '/passive', '/norestart']},
|
||||||
|
|
@ -200,10 +196,6 @@ def config_classicstart():
|
||||||
sleep(1)
|
sleep(1)
|
||||||
popen_program(cs_exe)
|
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():
|
def config_explorer_system():
|
||||||
"""Configure Windows Explorer for all users via Registry settings."""
|
"""Configure Windows Explorer for all users via Registry settings."""
|
||||||
write_registry_settings(SETTINGS_EXPLORER_SYSTEM, all_users=True)
|
write_registry_settings(SETTINGS_EXPLORER_SYSTEM, all_users=True)
|
||||||
|
|
@ -221,6 +213,10 @@ def config_privacy_settings():
|
||||||
'/quiet']
|
'/quiet']
|
||||||
run_program(cmd)
|
run_program(cmd)
|
||||||
|
|
||||||
|
def enable_regback():
|
||||||
|
"""Enable RegBack."""
|
||||||
|
write_registry_settings(SETTINGS_REGBACK, all_users=True)
|
||||||
|
|
||||||
def enable_system_restore():
|
def enable_system_restore():
|
||||||
"""Enable System Restore and set disk usage to 5%"""
|
"""Enable System Restore and set disk usage to 5%"""
|
||||||
cmd = [
|
cmd = [
|
||||||
|
|
|
||||||
|
|
@ -47,10 +47,12 @@ if __name__ == '__main__':
|
||||||
function=config_explorer_system, cs='Done')
|
function=config_explorer_system, cs='Done')
|
||||||
try_and_print(message='Privacy...',
|
try_and_print(message='Privacy...',
|
||||||
function=config_privacy_settings, cs='Done')
|
function=config_privacy_settings, cs='Done')
|
||||||
try_and_print(message='Updating Clock...',
|
try_and_print(message='Enabling RegBack...',
|
||||||
function=update_clock, cs='Done')
|
function=enable_regback, cs='Done')
|
||||||
try_and_print(message='Enabling System Restore...',
|
try_and_print(message='Enabling System Restore...',
|
||||||
function=enable_system_restore, cs='Done')
|
function=enable_system_restore, cs='Done')
|
||||||
|
try_and_print(message='Updating Clock...',
|
||||||
|
function=update_clock, cs='Done')
|
||||||
|
|
||||||
# Cleanup
|
# Cleanup
|
||||||
print_info('Cleanup')
|
print_info('Cleanup')
|
||||||
|
|
|
||||||
|
|
@ -42,8 +42,8 @@ if __name__ == '__main__':
|
||||||
# Configure
|
# Configure
|
||||||
print_info('Configure')
|
print_info('Configure')
|
||||||
if global_vars['OS']['Version'] == '10':
|
if global_vars['OS']['Version'] == '10':
|
||||||
try_and_print(message='Explorer...',
|
try_and_print(message='Enabling RegBack...',
|
||||||
function=config_explorer_system_hw, cs='Done')
|
function=enable_regback, cs='Done')
|
||||||
try_and_print(message='Enabling System Restore...',
|
try_and_print(message='Enabling System Restore...',
|
||||||
function=enable_system_restore, cs='Done')
|
function=enable_system_restore, cs='Done')
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue