Configure Windows Updates during checklist/setup
* Sets readiness branch to non-targeted semi-annual * Defers feature upgrades for 60 days * Fixes issue #93
This commit is contained in:
parent
86f81f2720
commit
c5b4446133
4 changed files with 20 additions and 0 deletions
|
|
@ -67,6 +67,11 @@ def config_explorer_user():
|
|||
write_registry_settings(SETTINGS_EXPLORER_USER, all_users=False)
|
||||
|
||||
|
||||
def config_windows_updates():
|
||||
"""Configure Windows updates."""
|
||||
write_registry_settings(SETTINGS_WINDOWS_UPDATES, all_users=True)
|
||||
|
||||
|
||||
def disable_windows_telemetry():
|
||||
"""Disable Windows 10 telemetry settings with O&O ShutUp10."""
|
||||
extract_item('ShutUp10', silent=True)
|
||||
|
|
|
|||
|
|
@ -103,6 +103,8 @@ if __name__ == '__main__':
|
|||
function=config_explorer_system, cs='Done')
|
||||
try_and_print(message='Disabling telemetry...',
|
||||
function=disable_windows_telemetry, cs='Done')
|
||||
try_and_print(message='Windows Updates...',
|
||||
function=config_windows_updates, cs='Done')
|
||||
try_and_print(message='Updating Clock...',
|
||||
function=update_clock, cs='Done')
|
||||
|
||||
|
|
|
|||
|
|
@ -137,6 +137,17 @@ VCR_REDISTS = [
|
|||
'/passive', '/norestart']},
|
||||
]
|
||||
|
||||
# Windows Updates
|
||||
SETTINGS_WINDOWS_UPDATES = {
|
||||
r'Software\Microsoft\WindowsUpdate\UX\Settings': {
|
||||
'DWORD Items': {
|
||||
# Set to non-targeted readiness level
|
||||
'BranchReadinessLevel': 32,
|
||||
'DeferFeatureUpdatesPeriodInDays': 60,
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
print("This file is not meant to be called directly.")
|
||||
|
|
|
|||
|
|
@ -43,6 +43,8 @@ if __name__ == '__main__':
|
|||
if global_vars['OS']['Version'] == '10':
|
||||
try_and_print(message='Explorer...',
|
||||
function=config_explorer_system, cs='Done')
|
||||
try_and_print(message='Windows Updates...',
|
||||
function=config_windows_updates, cs='Done')
|
||||
try_and_print(message='Updating Clock...',
|
||||
function=update_clock, cs='Done')
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue