---
title: Modifies the global firewall settings of a particular GPO policy store
slug: homologacao-atmosphere/modifies-the-global-firewall-settings-of-a-particular-gpo-policy-store
description: Learn how to modify the global firewall settings of a specific GPO policy repository with this comprehensive document. Understand the parameters, values, and PowerShell commands used in the example, along with the returned values. Enhance your knowledge o
createdAt: 2022-07-25T17:44:33.000Z
---

## Resumo

- Este exemplo modifica as configurações globais de firewall de um repositório de políticas de GPO específico. A execução desse cmdlet sem especificar o armazenamento de política recupera o armazenamento persistente.

## Parâmetros

| **Parâmetro**                                                                                                                                                                                                                                                                                         | **Tipo** | **Escolhas \| Valor Padrão**                                                                           | **Comentários**                                                                                                                                                  |
| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------- | ------------------------------------------------------------------------------------------------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| PolicyStore<br /><br />string<br />- Any ***(default)***<br />- Domain<br />- NotApplicable<br />- Public<br />- Private<br />Service Group a ser filtrado.<br />string<br />- Any ***(default)***<br />- Domain<br />- NotApplicable<br />- Public<br />- Private<br />Service Group a ser filtrado. | string   | - PersistentStore<br />- ActiveStore<br />- RSOP<br />- SystemDefaults<br />- ConfigurableServiceStore | Escopo a ser filtrado.<br />string<br />- Any ***(default)***<br />- Domain<br />- NotApplicable<br />- Public<br />- Private<br />Service Group a ser filtrado. |
| Exemptions                                                                                                                                                                                                                                                                                            | string   |                                                                                                        | isenções                                                                                                                                                         |

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-NetFirewallSetting -PolicyStore {{input.PolicyStore}} | Set-NetFirewallSetting -Exemptions {{input.Exemptions}} | 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            |

