tis-enable-windows-update

1.0-0
Re-enable Windows Updates default behavior before disable by the WAPT agent.
44 downloads
Download

  Description 

  • package : tis-enable-windows-update
  • version : 1.0-0
  • architecture : all
  • categories : Utilities
  • maintainer : WAPT Team,Tranquil IT,Gaëtan SEGAT
  • description : Re-enable Windows Updates default behavior before disable by the WAPT agent.
  • locale :
  • target_os : windows
  • min_wapt_version : 2.0
  • sources :
  • installed_size :
  • impacted_process :
  • description_fr :
  • description_pl :
  • description_de :
  • description_es :
  • description_pt :
  • description_it :
  • description_nl :
  • description_ru :
  • editor :
  • licence :
  • signature_date : 2021-07-19T12:01:08.452599

  Setup.py 

# -*- coding: utf-8 -*-
from setuphelpers import *

def install():

    print('Disable WAPT WUA')
    inifile_writestring(WAPT.config_filename,'waptwua','enabled','false')

    print('DisableWindowsUpdateAccess registry to 0')
    registry_set(HKEY_LOCAL_MACHINE,r'Software\Policies\Microsoft\Windows\WindowsUpdate','DisableWindowsUpdateAccess',0,REG_DWORD)

    print('AUOptions registry to 0')
    registry_set(HKEY_LOCAL_MACHINE,r'SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\Auto Update','AUOptions',0,REG_DWORD)

    print('Enable wuauserv')
    run_notfatal('sc config wuauserv start= auto')
    run_notfatal('net start wuauserv')

    print('Reload WAPT configuration')
    WAPT.reload_config_if_updated()

def update_package():
    pass
										

  Changelog 



No changelog.txt.
									
  manifest.sha256