> For the complete documentation index, see [llms.txt](https://docs.konnekt.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.konnekt.io/pt/configuration/other/license-key-on-multi-user-environments.md).

# Definir chave de licença

## Armazenamento da Chave de Licença

O KONNEKT procura chaves de licença em duas chaves do registro:

`HKEY_CURRENT_USER\SOFTWARE\glueckkanja\Konnekt\License` (REG SZ)

`HKEY_LOCAL_MACHINE\SOFTWARE\glueckkanja\Konnekt\License` (REG SZ)

{% hint style="info" %}
Se uma chave de licença for definida ao nível da máquina (HKLM), ela substituirá uma chave de licença ao nível do usuário (HKCU).
{% endhint %}

## Configuração da Chave de Licença

Há várias opções de como você pode configurar a chave de licença:

|            Opção            |                                                                                   Descrição                                                                                  |                                                                                Caso de uso                                                                                | Local de armazenamento da chave de licença |
| :-------------------------: | :--------------------------------------------------------------------------------------------------------------------------------------------------------------------------: | :-----------------------------------------------------------------------------------------------------------------------------------------------------------------------: | :----------------------------------------: |
| **Configuração interativa** |                                                               Insira a chave durante a configuração interativa                                                               |                                                         Esta opção pode ser uma boa escolha para um sistema único.                                                        |                    HKLM                    |
|         **Política**        |                                                     Defina a chave de licença por meio de uma política de GPO ou Intune.                                                     | <p>Esta é a abordagem recomendada para ambientes gerenciados.<br>Consulte <a href="#set-license-key-via-registry-gpo-mdm">Definir chave de licença</a> para detalhes.</p> |                HKLM ou HKCU                |
|      **Parâmetro MSI**      | <p>Define a chave de licença como um parâmetro MSI<br>(por exemplo, com instalação silenciosa <a href="/pt/installation/setup.md#silent-installation">Configuração</a>).</p> |                                       Esta opção pode ser uma boa escolha para ambientes com um sistema de distribuição de software.                                      |                    HKLM                    |
|   **Menu de preferências**  |                                                              Insira a chave de licença no menu de preferências.                                                              |                                                      Esta opção pode ser usada apenas para sistemas de usuário único.                                                     |                    HKCU                    |

Inserindo a chave de licença no menu de preferências:

![](https://1241930089-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M8zLVuKYctMIUr68_fs%2Fuploads%2FL2e802WbrQAboIv8ZTZy%2F2022-08-02%2016_32_15-Window.png?alt=media\&token=ab470fd7-9747-4b0c-820c-80d8aeaec65d)

{% hint style="danger" %}
O menu de preferências define a licença apenas para o usuário atual (HKCU). Outros usuários que fizerem login na mesma máquina também teriam que definir a licença.

Se uma chave de licença estiver configurada em HKLM, as configurações via menu de preferências não surtirão efeito. (veja [Definir chave de licença](#license-key-storage) para detalhes).
{% endhint %}

## Definir chave de licença via Registro/GPO/MDM

Nome da chave: **Licença**\
Tipo: REG\_SZ (Valor de string).

Define a chave de licença.

Recomendamos usar o nosso [modelo ADMX](/pt/configuration/management-options/settings-via-gpo.md#admx-file) para configurar essa definição.

## **Há várias maneiras de aplicar a política:**

* manualmente, adicionando a chave no registro nas configurações de registro da máquina ou do usuário
* via GPO, veja [definições via GPO](/pt/configuration/management-options/settings-via-gpo.md)
* aplicando políticas via Intune, veja [definições para dispositivos gerenciados pelo Intune](/pt/configuration/management-options/setting-for-intune-managed-devices-1/intune-other-settings.md#set-license-key)

**Políticas** armazenadas em:

`HKEY_CURRENT_USER\SOFTWARE\Policies\glueckkanja\Konnekt`

`HKEY_LOCAL_MACHINE\SOFTWARE\Policies\glueckkanja\Konnekt`


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.konnekt.io/pt/configuration/other/license-key-on-multi-user-environments.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
