tis-disable-netbios 4

  • package : tis-disable-netbios
  • version : 4
  • description : Disable netbios on all interfaces
  • maintainer : TIS <technique@tranquil-it-systems.fr>
  • date : 2018-02-27 18:58:39

setup.py

from setuphelpers import *

uninstallkey=['']

def install():
    output = run('echo "" | wmic nicconfig get index')
    for i in output.split('\n'):
        if i.strip()!='':
            i = i.strip()
            cmd = 'echo "" | wmic nicconfig where index=%s call SetTcpipNetbios 2' %  str(i)
            print cmd
            run(cmd)

    

Changelog

No changelog
    

manifest.sha256

[["setup.py", "ed34488319fcffb89880325d7eb847d3a33292d0e60e76cbeee3449c7ed8c469"], ["WAPT/certificate.crt", "79e5388683c0b6cb03f4f81e4e58e3a11463b2b6cf169dd9c453098027dcfaa4"], ["WAPT/wapt.psproj", "c5a1697bf6e134989a9870764995725626a8f5055b640e541b569d1a927363fc"], ["WAPT/control", "9e1471dd206bc748223314dbc89f8950551bf0b83551f65e121f9b12b4f26c42"]]