tis-enable-administrative-shares

2.0-8
Enabling administrative shares (C$, etc.)
93 downloads
Download

  Description 

  • package : tis-enable-administrative-shares
  • version : 2.0-8
  • architecture : all
  • categories : System and network
  • maintainer : WAPT Team,Jimmy PELÉ,Simon Fonteneau
  • description : Enabling administrative shares (C$, etc.)
  • locale :
  • target_os : windows
  • min_os_version :
  • max_os_version :
  • min_wapt_version : 1.7
  • sources :
  • installed_size :
  • impacted_process :
  • description_fr : Activation des partages administratif (C$, etc.)
  • description_pl :
  • description_de :
  • description_es :
  • description_pt :
  • description_it :
  • description_nl :
  • description_ru :
  • editor :
  • licence :
  • signature_date : 2020-10-19T12:30:52.374527
  • Conflicts :

  Setup.py 

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

uninstallkey = []


def install():
    print("Enabling administrative shares - reboot needed to be effective")
    registry_set(HKEY_LOCAL_MACHINE,r'SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters','AutoShareWks',1)


def audit():
    adminsh_status = str(registry_readstring(HKEY_LOCAL_MACHINE,r'SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters','AutoShareWks'))
    if adminsh_status == str(0):
        print("WARNING: The Administrative Shares are actually disabled.")
        return "WARNING"
    elif adminsh_status == str(1):
        print("OK: The Administrative Shares are actually enabled.")
        return "OK"
    else:
        print("WARNING: The Administrative Shares option is not applied.")
        return "WARNING"


def update_package():
    # Initializing variables
    version = control.get_software_version()

    # Incrementing version of the package
    control.version = '%s-%s'%(version,int(control.version.split('-')[-1])+1)
    control.save_control_to_wapt()
    print('Changing package version to: %s in WAPT\\control' % control.version)


										

  Changelog 


No changelog
  manifest.sha256 
[["setup.py","35b32fae4a21bbb436f4c557b790a7b54504a632923c8297430346a3dc05bd49"],["WAPT/icon.png","e1e2310e53ae98f5b9904d99657bf18aa3e8e5fdcefd2fd9607620d3b191bef8"],["WAPT/certificate.crt","a5a97261381e1d0ad46ee15916abec9c2631d0201f5cc50ceb0197a165a0bbbf"],["WAPT/control","b96277ff2e8c89aa513ae35847ccfc8616396514ab224d7d971fe0aebad7fc7d"]]