# Gerenciamento de atualizaçōes

Quando você instala o Agent SONAR em um computador Windows, ele define a seguinte chave:

{% code overflow="wrap" %}

```
HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU AUOptions (REG_DWORD): 1: Keep my computer up to date is disabled in Automatic Updates.
```

{% endcode %}

{% hint style="danger" %}
Verifique se nao há uma GPO interferindo nessa politica.
{% endhint %}

{% hint style="success" %}
Se você quiser retomar a aplicação normal de patches do Windows e desabilitar as funções de atualização, execute
{% endhint %}

{% code overflow="wrap" %}

```
Remove-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU" -Name "AUOptions"
```

{% endcode %}

***

Consulte nesse documento detalhes para gerenciar atualizaçoes do Windows via Script, que por sua vez pode ser executado dentro do SONAR.

{% embed url="<https://woshub.com/pswindowsupdate-module/#google_vignette>" %}

Os agents SONAR consulta a seguinte URL para buscar as atualizaçoes.

<https://docs.microsoft.com/en-us/windows/win32/api/_wua/>


---

# Agent Instructions: Querying This Documentation

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

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://wiki.datadike.com/product-guide/configuracoes/sonar/rmm/gerenciamento-de-atualizacoes.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
