---
title: Get All Firewall Rules in Active Store
slug: homologacao-atmosphere/get-all-firewall-rules-in-active-store
description: This document offers a comprehensive summary of a PowerShell command designed to fetch all firewall rules from an Active Store. It covers the necessary parameters for the PowerShell Command module and provides practical examples for implementing the comma
createdAt: 2022-07-06T18:27:40.000Z
---

## Resumo

- Obtém todas as regras de firewall em um Active Store.

## Parâmetros

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

## Exemplos

```yaml
tasks:
  powershell_command:
    server: "{{ server }}"
    port: "{{ input.port }}"
		ssl: "{{ input.ssl }}"
    username: "{{ username }}"
    password: "{{ password }}"
    show_errors: true
		show_warnings: true
    command: |
      Get-NetFirewallRule -PolicyStore ActiveStore | ConvertTo-Json
  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            |

