tis-fix-disable-windows-update

6.1-5
Hard way to prevent Windows Updates from running on Windows 10 over WATP WUA
1327 downloads
Download

  Description 

  • package : tis-fix-disable-windows-update
  • version : 6.1-5
  • architecture : all
  • categories :
  • maintainer : Simon FONTENEAU
  • description : Hard way to prevent Windows Updates from running on Windows 10 over WATP WUA
  • locale :
  • target_os : windows
  • min_wapt_version : 1.7
  • 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 : 2020-09-11T16:28:02.263410

  Setup.py 

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

uninstallkey = []


def install():
    if windows_version() > '10.0.10587':
        for service in ('dosvc','waasmedicsvc','unosvc'):
            print("Checking  %s " % service)
            if reg_key_exists(HKEY_LOCAL_MACHINE,r'SYSTEM\CurrentControlSet\Services\%s' % service):
                if int(registry_readstring(HKEY_LOCAL_MACHINE,r'SYSTEM\CurrentControlSet\Services\%s' % service,'start')) !=4:
                    print('Disabling Windows Remediation Service (%s)'% service)
                    registry_set(HKEY_LOCAL_MACHINE,r'SYSTEM\CurrentControlSet\Services\%s' % service,'start',4)
                    try:
                        service_stop(service)
                    except:
                        pass
                    run_notfatal('taskkill /FI "SERVICES eq %s"  /F' % service)
            else:
                print('no service %s found ' % service)
        # osrss (Windows 10 Update Facilitation) cannot be shut down with standard way
        registry_set(HKEY_LOCAL_MACHINE,r'SYSTEM\CurrentControlSet\Services\osrss','start',4)
        run_notfatal(r"icacls c:\windows\system32\osrss.dll /deny *S-1-1-0:(oi)(ci)(DE,dc)")
        run_notfatal('taskkill /FI "SERVICES eq osrss"  /F')

        # wuauserv is still need for waptwua
        registry_set(HKEY_LOCAL_MACHINE,r'SYSTEM\CurrentControlSet\Services\wuauserv','start',4)


def audit():
    install()


def update_package():
    # Initializing variables
    version = control.get_software_version()

    # Incrementing version of the package
    control.version = '%s-%s'%(version,int(control.version.split('-')[-1])+1)
    control.save_control_to_wapt()
    print('Changing version to: %s in WAPT\\control' % control.version)




										

  Changelog 



No changelog.txt.
									
  manifest.sha256