def METHOD_NAME(name="allprofiles"):
    """
    Disable all the firewall profiles (Windows only)
    Args:
        profile (Optional[str]): The name of the profile to disable. Default is
            ``allprofiles``. Valid options are:
            - allprofiles
            - domainprofile
            - privateprofile
            - publicprofile
    Example:
    .. code-block:: yaml
        # To disable the domain profile
        disable_domain:
          win_firewall.disabled:
            - name: domainprofile
        # To disable all profiles
        disable_all:
          win_firewall.disabled:
            - name: allprofiles
    """
    ret = {"name": name, "result": True, "changes": {}, "comment": ""}
    profile_map = {
        "domainprofile": "Domain",
        "privateprofile": "Private",
        "publicprofile": "Public",
        "allprofiles": "All",
    }
    # Make sure the profile name is valid
    if name not in profile_map:
        raise SaltInvocationError("Invalid profile name: {}".format(name))
    current_config = __salt__["firewall.get_config"]()
    if name != "allprofiles" and profile_map[name] not in current_config:
        ret["result"] = False
        ret["comment"] = "Profile {} does not exist in firewall.get_config".format(name)
        return ret
    for key in current_config:
        if current_config[key]:
            if name == "allprofiles" or key == profile_map[name]:
                ret["changes"][key] = "disabled"
    if __opts__["test"]:
        ret["result"] = not ret["changes"] or None
        ret["comment"] = ret["changes"]
        ret["changes"] = {}
        return ret
    # Disable it
    if ret["changes"]:
        try:
            ret["result"] = __salt__["firewall.disable"](name)
        except CommandExecutionError:
            ret["comment"] = "Firewall Profile {} could not be disabled".format(
                profile_map[name]
            )
    else:
        if name == "allprofiles":
            msg = "All the firewall profiles are disabled"
        else:
            msg = "Firewall profile {} is disabled".format(name)
        ret["comment"] = msg
    return ret