def __virtual__():
    if salt.utils.is_windows() and has_required_packages:
        return __virtualname__
    return (False, 'Cannot load win_status module on non-windows')
Only works on Windows systems
dataset/ETHPy150Open saltstack/salt/salt/modules/win_status.py/__virtual__