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
  • signer : TRANQUIL IT SYSTEMS
  • signature_date : 20170720-111947
  • min_os_version :
  • min_wapt_version :

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)

    

manifest

[["setup.py", "86730d1607ed66c5b2a006efbbfc8dc42d92b8cb"], ["WAPT/certificate.crt", "0db563dc9077b268ca07ba834322d0fc5e21f8e5"], ["WAPT/wapt.psproj", "575da1ee74ac6e8c12f437d8399530183e2347c5"], ["WAPT/control", "8d7f1740702145016e237b8e38f94f22d3c4b4b4"]]