def __virtual__():
    if salt.utils.is_windows():
        return 'rdp'
    return (False, 'Module only works on Windows.')
Only works on Windows systems
dataset/ETHPy150Open saltstack/salt/salt/modules/rdp.py/__virtual__