tis-disable-adminshare 1.0.0-1

  • package : tis-disable-adminshare
  • version : 1.0.0-1
  • description : Disable administrative shares
  • maintainer : TIS Tranquil IT Systems
  • date : 2018-02-27 18:58:39

setup.py

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

uninstallkey = []

def install():
    print("Disable administrative shares - reboot needed to be effective")
    registry_setstring(HKEY_LOCAL_MACHINE, r"SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters",'AutoShareWks',0, type=REG_DWORD)
    #reboot_machine(message="Administrative shares disabled, reboot in 15 secondes",timeout=30,force=1,reboot=1)

def uninstall():
    print("Re-enable administrative shares - reboot needed to be effective")
    registry_setstring(HKEY_LOCAL_MACHINE, r"SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters",'AutoShareWks',1, type=REG_DWORD)
    #reboot_machine(message="Administrative shares disabled, reboot in 15 secondes",timeout=30,force=1,reboot=1)

    

Changelog

No changelog
    

manifest.sha256

[["setup.py", "b6ecc523e88b036c4dbf275978a3c73a4b5ae2c3b03d7d0dba5e1b6c029ca4fe"], ["WAPT/certificate.crt", "79e5388683c0b6cb03f4f81e4e58e3a11463b2b6cf169dd9c453098027dcfaa4"], ["WAPT/wapt.psproj", "c5a1697bf6e134989a9870764995725626a8f5055b640e541b569d1a927363fc"], ["WAPT/control", "281dad3058161a5090f6475fe4c5281ea47944dc4eee7312988645387b87d948"]]