tis-enable-adminshare 0.0.0-5

  • package : tis-enable-adminshare
  • version : 0.0.0-5
  • description :
  • maintainer : Administrateur
  • date : 2017-07-20 11:20:06
  • signer : TRANQUIL IT SYSTEMS
  • signature_date : 20170720-112006
  • min_os_version :
  • min_wapt_version :

setup.py

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

uninstallkey = []

def install():
    print('Enable RDP access without NLA and lowest security... ')
    if windows_version() < Version('6.1'):
        run(r'reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\LanmanServer\Parameters" /v AutoShareWks /t REG_DWORD /d 1 /f')
    else:
        run(r'reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System" /v LocalAccountTokenFilterPolicy /t REG_DWORD /d 1 /f')

    print 'System reboot'
    run_notfatal('shutdown /t 10 /r')

def uninstall():
    print('To do...')
    

manifest

[["setup.py", "0afb71400154851f56dd63ffdf20b36ef7e1c017"], ["WAPT/certificate.crt", "0db563dc9077b268ca07ba834322d0fc5e21f8e5"], ["WAPT/wapt.psproj", "29705b3b5de9fe6bf2001caf814fec9ccb42ecce"], ["WAPT/control", "7a734fc55ccf98483920cc7ae98a918bf936507b"], ["Notepad++.lnk", "e905f67cb1c1fabda8cb995e0f73b99e495e15ed"]]