---
title: Displays All of the Firewall Rules
slug: homologacao-atmosphere/displays-all-of-the-firewall-rules
description: Learn how to retrieve all firewall rules using a PowerShell command module with this comprehensive document. It covers the parameters, usage example, and details the values returned by the command, including output, errors, warnings, and descriptions for 
createdAt: 2022-07-25T17:44:38.000Z
---

## Resumo

- Obtém todas as regras de Firewall.

## Parâmetros

Utiliza parâmetros do módulo [Powershell Command](https://docs.simonops.com/homologacao-atmosphere/powershell-command).

## Exemplos

```yaml
- name: Displays all of the existing firewall rules
  powershell_command:
    server: "{{ input.server }}"
		ssl: "{{ input.ssl }}"
    username: "{{ input.username }}"
    password: "{{ input.password }}"
		show_errors: "{{ input.show_errors }}"
		show_warnings: "{{ input.show_warnings }}"
    command: |
      Show-NetFirewallRule -PolicyStore ActiveStore
  register: result
  - debug:
    msg: |
      {{ result.output }}
      {{ result.had_errors }}
      {{ result.output_errors }}
      {{ result.output_warnings }}


```

## Valores retornados

| **Chave**        | **Tipo** | **Retornado quando** | **Descrição**              |
| ---------------- | -------- | -------------------- | -------------------------- |
| output           | string   | Sempre               | Saída da execução          |
| had\_errors      | boolean  | Sempre               | Se teve erros              |
| output\_errors   | string   | Sempre               | Erros de saída da execução |
| output\_warnings | string   | Sempre               | Avisos de saída            |

