tis-disable-llmnr-bonjour icon

tis-disable-llmnr-bonjour

Silent install package for tis-disable-llmnr-bonjour

1.0-6

  • package: tis-disable-llmnr-bonjour
  • version: 1.0-6
  • maintainer: Tranquil IT
  • target_os: windows
  • architecture: all
  • signature_date:
  • size: 8.70 Ko

package           : tis-disable-llmnr-bonjour
version           : 1.0-6
architecture      : all
section           : base
priority          : optional
name              : 
categories        : 
maintainer        : Tranquil IT
description       : Disable LLMNR and Remove Bonjour
depends           : 
conflicts         : 
maturity          : PROD
locale            : 
target_os         : windows
min_wapt_version  : 2.5
sources           : 
installed_size    : 
impacted_process  : 
description_fr    : 
description_pl    : 
description_de    : 
description_es    : 
description_pt    : 
description_it    : 
description_nl    : 
description_ru    : 
audit_schedule    : 
editor            : 
keywords          : 
licence           : 
homepage          : 
package_uuid      : 81bc967f-6df2-4f05-a55e-fb9c754cdee1
valid_from        : 
valid_until       : 
forced_install_on : 
changelog         : 
min_os_version    : 
max_os_version    : 
icon_sha256sum    : 3b7f681681359669c42f09c7950472333db2c951ab10e14ab1227b9a9e47d299
signer            : Tranquil IT
signer_fingerprint: 8c5127a75392be9cc9afd0dbae1222a673072c308c14d88ab246e23832e8c6bb
signature_date    : 2026-01-10T11:00:26.000000
signed_attributes : package,version,architecture,section,priority,name,categories,maintainer,description,depends,conflicts,maturity,locale,target_os,min_wapt_version,sources,installed_size,impacted_process,description_fr,description_pl,description_de,description_es,description_pt,description_it,description_nl,description_ru,audit_schedule,editor,keywords,licence,homepage,package_uuid,valid_from,valid_until,forced_install_on,changelog,min_os_version,max_os_version,icon_sha256sum,signer,signer_fingerprint,signature_date,signed_attributes
signature         : pvtz9XThgSJpf1g1Mos2Thdguu4CeQdqOEfvsW1k3MSasDmd0Z73MjwP2jmcBSmTkkLkEpbRpxxvODBFKu3PWT5CrA1u9ntd6OFo69U00HT4DQXdzv1pkuOS4fWxj1SgosifyMCsHn1PaMt2Acx17O5rayRULcAtG6pBosAEj3S8PiTEP0UeXjRA/Z3DV4ERttFI5Q3OFddYJTLho9OIwRizjqaYLkAVnQTiaTz6JeOYU3pMxmIXZBK/ZtLDBifuwbD0YnQSihZ7hNT69AtuodbVxHyrvksCVG/9K7QRoCjI1akzC7r5t1XijORUFFrzPkjLEtQ6vkYoVYmFZ7ylag==

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

uninstallkey = []
if iswin64():
    installed_path = [programfiles32,programfiles64]
else:
    installed_path = [programfiles]

def install():
    audit()
    pass

def uninstall():
    print('uninstalling %s' % control.asrequirement())
    # put here what to do when package is removed from host
    # implicit context variables are WAPT, control, user, params, run

def session_setup():
    print('Session setup for %s' % control.asrequirement())
    # put here what to do when package is configured inside a user session
    # implicit context variables are WAPT, control, user, params

def audit():
    warning = False
    print('Auditing %s' % control.asrequirement())

    EnableMulticast = registry_get(HKEY_LOCAL_MACHINE,r'SOFTWARE\Policies\Microsoft\Windows NT\DNSClient','EnableMulticast')
    if EnableMulticast != 0:
        print("LLMNR enabled")
        autofixllmnr()

        EnableMulticast = registry_get(HKEY_LOCAL_MACHINE,r'SOFTWARE\Policies\Microsoft\Windows NT\DNSClient','EnableMulticast')
        if EnableMulticast != 0:
            warning = True

    if installed_softwares("Bonjour"):
        if service_installed("Bonjour"):
            service_stop("Bonjour")

        for soft in installed_softwares("Bonjour"):
            run_notfatal(uninstall_cmd(soft['key']))

        print(installed_softwares("Bonjour"))

        warning = True
    else:
        print('No Bonjour service found')

    if warning :
        return "WARNING"
    else:

        print("Ok, mDNS/Bonjour not seen on this computer")
        return "OK"

def autofixllmnr():
    print('try to fix LLMNR')
    registry_set(HKEY_LOCAL_MACHINE,r'SOFTWARE\Policies\Microsoft\Windows NT\DNSClient','EnableMulticast',0)

5a14c1c45b2c6e8f0482eade49ae7067c749891fd599d52ff274b551b8df019c : .gitignore
9aa7772cc6ea3d640f4665d539b898bb4d898e1e852f63efa61929218623f717 : README.md
38d056ab130f7bf7c481c12636a4e9959de36561d3dfcbe54c6e3571bc0c1dc3 : WAPT/certificate.crt
4b90e6a6ec5ff5d077b77d64f07711693e7b13e37a921dac612b6ece409ac4a9 : WAPT/control
3b7f681681359669c42f09c7950472333db2c951ab10e14ab1227b9a9e47d299 : WAPT/icon.png
945af99e23bd0e4f5708da9bb121e4671f923d1c0a38eefadee7fd4a64ab8752 : luti.json
77513f57e1fc8ab51f64cd870f9b0efdf212156822b154f9ff9c35905f95a2a4 : setup.py