Tranquil IT recrute Tranquil IT recrute

tis-fix-disable-windows-update

Version : 3

Download
  • package : tis-fix-disable-windows-update
  • editor :
  • version : 3
  • licence :
  • architecture : all
  • locale :
  • description : Package for tis-fix-disable-windows-update
  • description_fr :
  • min_os_version :
  • max_os_version :
  • min_wapt_version :
  • installed_size :
  • impacted_process :
  • signature_date : 2019-11-04T09:49:39.932000
  • maintainer : Simon FONTENEAU

setup.py

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

uninstallkey = []

def install():
    print('installing %s' % control.asrequirement())
    # put here what to do when package is installed on host
    # implicit context variables are WAPT, basedir, control, user, params, run

    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)
			

Changelog

"""{% trans %}No changelog.{% endtrans %}"""
			

manifest.sha256

[["setup.py", "6dde6146c497d979866b0ca5ba1f48cb35791495bbc8200600b892ac0db8f18d"], ["WAPT/certificate.crt", "79e5388683c0b6cb03f4f81e4e58e3a11463b2b6cf169dd9c453098027dcfaa4"], ["WAPT/wapt.psproj", "510d3af6fcf8f2eae5db684bb830ea9845576e76872b9b10854efaea6e4a4cd8"], ["WAPT/control", "5baae4fef5ff5cee59dbe38080a90cf956e0f12350b420e5f41a4ed1d5149f6a"]]