---
title: Retrieves the active profile conditions on a per profile basis
slug: homologacao-atmosphere/retrieves-the-active-profile-conditions-on-a-per-profile-basis
description: Learn how to retrieve active profile conditions by profile using a PowerShell command. This document offers a comprehensive summary, including details on parameters and practical examples. Discover the values returned by the command, such as output, error
createdAt: 2022-07-06T18:27:42.000Z
---

## Resumo

- Recupera as condições do perfil ativo por perfil. 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** |
| ------------- | -------- | ---------------------------- | --------------- |

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-NetFirewallProfile -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            |

