tis-disablenetbios 3

  • package : tis-disablenetbios
  • version : 3
  • description : disable netbios on all interfaces
  • maintainer : TIS <technique@tranquil-it-systems.fr>
  • date : 2017-07-20 11:19:47

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", "b04abd17dff05c6c9456366e055de0e5e191fc0642fbef7f71018aeaefcb059b"], ["WAPT/certificate.crt", "20f25d6b242159077345379865f8e0d84bdc9e4764190f1aa6cb3816bcabd341"], ["WAPT/wapt.psproj", "df0b280a4dff05ccc3b6185cf1dd39ac9a0aeca883450cc1836a4004baee2567"], ["WAPT/control", "6ce0e1d127587be58f2d4ce9f0db3b832883b759c5a77fd6428899a08f140b4e"]]