tis-disable-adminshare

1.0.0-1
Disable administrative shares
795 downloads
Download

  Description 

  • package : tis-disable-adminshare
  • version : 1.0.0-1
  • architecture : all
  • categories :
  • maintainer : TIS Tranquil IT Systems
  • description : Disable administrative shares
  • locale :
  • target_os :
  • min_os_version :
  • max_os_version :
  • min_wapt_version :
  • sources :
  • installed_size :
  • impacted_process :
  • description_fr :
  • description_pl :
  • description_de :
  • description_es :
  • description_pt :
  • description_it :
  • description_nl :
  • description_ru :
  • editor :
  • licence :
  • signature_date : 2020-02-27T21:29:45.526509

  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","a5a97261381e1d0ad46ee15916abec9c2631d0201f5cc50ceb0197a165a0bbbf"],["WAPT/wapt.psproj","c5a1697bf6e134989a9870764995725626a8f5055b640e541b569d1a927363fc"],["WAPT/control","5900176502fad0b1e20d614b2a3012d281d50ef32497d20bef6ed0d88527e157"]]