def get_rule(name='all'):
    ret = {}
    cmd = ['netsh', 'advfirewall', 'firewall', 'show', 'rule', 'name={0}'.format(name)]
    ret[name] = __salt__['cmd.run'](cmd, python_shell=False)

    if ret[name].strip() == 'No rules match the specified criteria.':
        ret = False

    return ret
.. versionadded:: 2015.5.0
dataset/ETHPy150Open saltstack/salt/salt/modules/win_firewall.py/get_rule