WAPT/gpo-enable-rdp/setup.py
2018-11-16 09:30:28 +01:00

13 lines
437 B
Python

# -*- coding: utf-8 -*-
from setuphelpers import *
uninstallkey = []
def install():
print('Activation de RDP')
registry_set(HKEY_LOCAL_MACHINE,r'SYSTEM\CurrentControlSet\Control\Terminal Server',r'fDenyTSConnections',0,type=REG_DWORD)
def uninstall():
print('desactivation de RDP')
registry_set(HKEY_LOCAL_MACHINE,r'SYSTEM\CurrentControlSet\Control\Terminal Server',r'fDenyTSConnections',1,type=REG_DWORD)