Merge remote-tracking branch 'upstream/dev' into dev

This commit is contained in:
2Shirt 2019-03-16 19:01:42 -06:00
commit f39bb8191e
Signed by: 2Shirt
GPG key ID: 152FAC923B0E132C
4 changed files with 23 additions and 3 deletions

View file

@ -68,6 +68,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 create_system_restore_point():
"""Create system restore point."""
cmd = [

View file

@ -135,6 +135,8 @@ if __name__ == '__main__':
function=disable_windows_telemetry, cs='Done')
try_and_print(message='Enabling RegBack...',
function=enable_regback, cs='Done')
try_and_print(message='Windows Updates...',
function=config_windows_updates, cs='Done')
try_and_print(message='Enabling System Restore...',
function=enable_system_restore, cs='Done')
try_and_print(message='Updating Clock...',

View file

@ -86,7 +86,8 @@ SETTINGS_EXPLORER_SYSTEM = {
'Status': {'Value': 0},
},
# 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},
},
r'Software\Microsoft\Windows\CurrentVersion\Policies\DataCollection': {
@ -179,6 +180,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.")

View file

@ -49,14 +49,15 @@ if __name__ == '__main__':
function=disable_windows_telemetry, cs='Done')
try_and_print(message='Enabling RegBack...',
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...',
function=enable_mini_dumps, 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='Enabling Windows Updates...',
function=enable_windows_updates, cs='Done')
enable_windows_updates()
try_and_print(message='Updating Clock...',
function=update_clock, cs='Done')