Merge remote-tracking branch 'upstream/dev' into dev
This commit is contained in:
commit
f39bb8191e
4 changed files with 23 additions and 3 deletions
|
|
@ -68,6 +68,11 @@ def config_explorer_user():
|
||||||
write_registry_settings(SETTINGS_EXPLORER_USER, all_users=False)
|
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 create_system_restore_point():
|
def create_system_restore_point():
|
||||||
"""Create system restore point."""
|
"""Create system restore point."""
|
||||||
cmd = [
|
cmd = [
|
||||||
|
|
|
||||||
|
|
@ -135,6 +135,8 @@ if __name__ == '__main__':
|
||||||
function=disable_windows_telemetry, cs='Done')
|
function=disable_windows_telemetry, cs='Done')
|
||||||
try_and_print(message='Enabling RegBack...',
|
try_and_print(message='Enabling RegBack...',
|
||||||
function=enable_regback, cs='Done')
|
function=enable_regback, cs='Done')
|
||||||
|
try_and_print(message='Windows Updates...',
|
||||||
|
function=config_windows_updates, 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...',
|
try_and_print(message='Updating Clock...',
|
||||||
|
|
|
||||||
|
|
@ -86,7 +86,8 @@ SETTINGS_EXPLORER_SYSTEM = {
|
||||||
'Status': {'Value': 0},
|
'Status': {'Value': 0},
|
||||||
},
|
},
|
||||||
# Disable Telemetry
|
# Disable Telemetry
|
||||||
r'Software\Microsoft\Windows\CurrentVersion\Policies\DataCollection': {
|
r'SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\DataCollection': {
|
||||||
|
# Using SOFTWARE in all caps to avoid collision with 32-bit setting below
|
||||||
'DWORD Items': {'AllowTelemetry': 0},
|
'DWORD Items': {'AllowTelemetry': 0},
|
||||||
},
|
},
|
||||||
r'Software\Microsoft\Windows\CurrentVersion\Policies\DataCollection': {
|
r'Software\Microsoft\Windows\CurrentVersion\Policies\DataCollection': {
|
||||||
|
|
@ -179,6 +180,17 @@ VCR_REDISTS = [
|
||||||
'/passive', '/norestart']},
|
'/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__':
|
if __name__ == '__main__':
|
||||||
print("This file is not meant to be called directly.")
|
print("This file is not meant to be called directly.")
|
||||||
|
|
|
||||||
|
|
@ -49,14 +49,15 @@ if __name__ == '__main__':
|
||||||
function=disable_windows_telemetry, cs='Done')
|
function=disable_windows_telemetry, cs='Done')
|
||||||
try_and_print(message='Enabling RegBack...',
|
try_and_print(message='Enabling RegBack...',
|
||||||
function=enable_regback, cs='Done')
|
function=enable_regback, cs='Done')
|
||||||
|
try_and_print(message='Windows Updates...',
|
||||||
|
function=config_windows_updates, cs='Done')
|
||||||
try_and_print(message='Enabling BSoD mini dumps...',
|
try_and_print(message='Enabling BSoD mini dumps...',
|
||||||
function=enable_mini_dumps, cs='Done')
|
function=enable_mini_dumps, 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='Create System Restore point...',
|
try_and_print(message='Create System Restore point...',
|
||||||
function=create_system_restore_point, cs='Done')
|
function=create_system_restore_point, cs='Done')
|
||||||
try_and_print(message='Enabling Windows Updates...',
|
enable_windows_updates()
|
||||||
function=enable_windows_updates, cs='Done')
|
|
||||||
try_and_print(message='Updating Clock...',
|
try_and_print(message='Updating Clock...',
|
||||||
function=update_clock, cs='Done')
|
function=update_clock, cs='Done')
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue