def enable():

    return _parse_return_code_powershell(
        _psrdp('$RDP.SetAllowTsConnections(1,1)')) == 0
Enable RDP the service on the server
dataset/ETHPy150Open saltstack/salt/salt/modules/rdp.py/enable