> For the complete documentation index, see [llms.txt](https://docs.stoik.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.stoik.io/help/help-nl/email-security/microsoft-365/purview-errors.md).

# Activeringsfouten van Purview

Los de fouten op die Microsoft Purview kan tonen nadat u auditlogboekregistratie hebt ingeschakeld tijdens de [instelling](/help/help-nl/email-security/microsoft-365.md).

## "Problemen met het vaststellen of activiteit wordt vastgelegd"

Nadat u auditlogboekregistratie hebt ingeschakeld, kunt u het volgende zien:

<figure><img src="https://2067006134-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FaDGGQ49Oui29Ft0kJjSm%2Fuploads%2FhJA6xidfLH0Nn7Ap1YQ2%2Fpurview-error-message.png?alt=media&amp;token=75758ab0-84dd-443d-9a6f-bc4cb0048f41" alt=""><figcaption></figcaption></figure>

> Sorry, het lukt ons niet om te achterhalen of activiteit wordt vastgelegd. Probeer de pagina te vernieuwen.

In de meeste gevallen betekent dit niet **niet** dat de activering is mislukt. Dit weerspiegelt een vertraging aan de kant van Microsoft tussen het moment waarop auditlogboekregistratie wordt ingeschakeld en het moment waarop daadwerkelijk activiteit wordt vastgelegd. Deze vertraging kan variëren van enkele minuten tot meerdere uren en kan niet van onze kant worden versneld.

{% hint style="info" %}
De foutmelding in de Purview-webportal is geen betrouwbare indicator. Deze geeft niet aan of Purview daadwerkelijk actief is, alleen dat de portal dit op dat moment niet kan bevestigen.
{% endhint %}

## "Enable-OrganizationCustomization"-fout

Een andere melding betekent dat de tenant nooit is aangepast (deze is "gedehydrateerd"). Auditlogboekregistratie kan pas worden ingeschakeld nadat die eenmalige installatie is uitgevoerd:

<figure><img src="https://2067006134-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FaDGGQ49Oui29Ft0kJjSm%2Fuploads%2Fgit-blob-45f07879a296d2f30f358312eef4e44101ae0de1%2Fpurview-dehydrated-error.png?alt=media" alt=""><figcaption></figcaption></figure>

> De opdracht die u probeerde uit te voeren is momenteel niet toegestaan in uw organisatie. Om deze opdracht uit te voeren, moet u eerst de opdracht: Enable-OrganizationCustomization uitvoeren.

In tegenstelling tot de vertraging hierboven vereist dit actie. Twee opties:

* De portal toont een **Volledige organisatieconfiguratie** prompt: door te klikken op **Ja** wordt de aanpassing uitgevoerd, maar auditlogboekregistratie wordt daarna niet altijd opnieuw ingeschakeld, waardoor u vaak weer op de fout uitkomt.
* De betrouwbare oplossing is de onderstaande PowerShell-stappen, die de aanpassing uitvoeren en vervolgens auditlogboekregistratie in één keer opnieuw inschakelen. Het [Purview-script](/help/help-nl/email-security/microsoft-365/purview-script.md) doet dit van begin tot eind: het voert de aanpassing uit, wacht tot de tenant klaar is met hydrateren en schakelt daarna automatisch auditlogboekregistratie in.

## Auditlogboekregistratie activeren met PowerShell

De meest betrouwbare manier om Purview-auditlogboekregistratie te activeren is deze rechtstreeks via PowerShell af te dwingen, in plaats van te vertrouwen op de webportal.

U kunt deze opdrachten uitvoeren vanuit PowerShell dat op uw computer is geïnstalleerd, of rechtstreeks vanuit Azure Cloud Shell in de browser.

{% stepper %}
{% step %}

### Verbinding maken met Exchange Online

{% tabs %}
{% tab title="Lokale PowerShell" %}
Installeer de module en maak vervolgens verbinding. Vervang `<admin@yourdomain.com>` door een account met beheerdersrechten op de tenant.

```powershell
Install-Module -Name ExchangeOnlineManagement
Import-Module ExchangeOnlineManagement
Connect-ExchangeOnline -UserPrincipalName <admin@yourdomain.com>
```

{% endtab %}

{% tab title="Azure Cloud Shell" %}
Azure Cloud Shell vereist een actief Azure-abonnement op de tenant. Als dat niet beschikbaar is, gebruik dan lokale PowerShell.

Open [Azure Cloud Shell](https://shell.azure.com) in PowerShell-modus. Als bovenaan de terminal een `Overschakelen naar Bash` knop staat, bent u al in PowerShell-modus.

Verbinding maken met Exchange Online:

```powershell
Connect-ExchangeOnline
```

<figure><img src="https://2067006134-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FaDGGQ49Oui29Ft0kJjSm%2Fuploads%2F6th9j4RFdqPwnXRYAn0W%2Fimage.png?alt=media&amp;token=6511635c-2dca-44b2-a424-1591f82f3247" alt=""><figcaption></figcaption></figure>
{% endtab %}
{% endtabs %}
{% endstep %}

{% step %}

### Forceer de activering

Voer de opdrachten een voor een uit, in volgorde. Het geforceerd uitschakelen en daarna opnieuw inschakelen is wat tenants die vastzitten op de fout betrouwbaar deblokkeert.

1. Auditlogboekregistratie uitschakelen:

   ```powershell
   Set-AdminAuditLogConfig -UnifiedAuditLogIngestionEnabled $false
   ```
2. Schakel het opnieuw in:

   ```powershell
   Set-AdminAuditLogConfig -UnifiedAuditLogIngestionEnabled $true
   ```
3. Controleer de status:

   ```powershell
   Get-AdminAuditLogConfig | Format-List UnifiedAuditLogIngestionEnabled
   ```

`UnifiedAuditLogIngestionEnabled` zou nu moeten teruggeven `True`.

<details>

<summary>De opdracht om opnieuw in te schakelen geeft een fout</summary>

Op tenants die nooit zijn aangepast, kan de opdracht om opnieuw in te schakelen mislukken met:

> De opdracht die u probeerde uit te voeren is momenteel niet toegestaan in uw organisatie. Om deze opdracht uit te voeren, moet u eerst de opdracht: Enable-OrganizationCustomization uitvoeren.

Voer de aanpassingsopdracht uit en controleer vervolgens dat de tenant niet langer gedehydrateerd is:

```powershell
Enable-OrganizationCustomization
Get-OrganizationConfig | Format-List IsDehydrated
```

`IsDehydrated` zou moeten teruggeven `False`. Zodra dat het geval is, voert u de opdracht om opnieuw in te schakelen opnieuw uit.

</details>
{% endstep %}
{% endstepper %}

## Nadat de opdracht True teruggeeft

Een `True` betekent de uitvoer dat de opdracht is uitgevoerd, maar dat Purview niet onmiddellijk actief is: Microsoft heeft tijd nodig om daadwerkelijk te beginnen met het vastleggen van activiteit, soms enkele uren. Vernieuw de Purview-portal na een tijdje en de foutmelding zou verdwenen moeten zijn.

Als de fout na enkele uren nog steeds aanwezig is, voer de geforceerde activering opnieuw uit (stel in `$false` en daarna `$true`). Als het daarna nog steeds niet werkt, heeft het probleem waarschijnlijk te maken met tenantlicenties of machtigingen. Neem contact op met ons team via <protect@stoik.io> met het resultaat van de opdracht, zodat we u kunnen helpen het probleem te diagnosticeren.


---

# 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.stoik.io/help/help-nl/email-security/microsoft-365/purview-errors.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.
