def disable():

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