# Repair-GPOZaurrPermission

Repairs permissions for Group Policy Objects (GPOs) based on specified criteria.

Project

GPOZaurr

GPOZaurr helps inspect, report on, and remediate Group Policy environments with PowerShell.

[View on GitHub](https://github.com/EvotecIT/GPOZaurr) [Visit Website](#) [Releases](https://github.com/EvotecIT/GPOZaurr/releases/tag/v1.1.10) [Changelog](#) [Get package](https://www.powershellgallery.com/packages/GPOZaurr/1.1.9)

Stars **1,257**

Forks **121**

Open issues **15**

PowerShell Gallery downloads **421,558**

Release **v1.1.11**

Language: PowerShell Updated: 2026-10-30

Command 

**Module**

`GPOZaurr`

Repairs permissions for Group Policy Objects (GPOs) based on specified criteria.

## Syntax

```
Repair-GPOZaurrPermission
[[-ExcludeDomains] <String[]>]
[[-ExtendedForestInformation] <IDictionary>]
[[-Forest] <String>]
[[-IncludeDomains] <String[]>]
[[-LimitProcessing] <Int32>]
[-Type] <AuthenticatedUsers|Unknown|System|Administrative|All>
[<CommonParameters>]
```

[#](#method-repair-gpozaurrpermission-string-idictionary-string-string-int32-string)

Parameter set: `All Parameter Sets`

## Description

The Repair-GPOZaurrPermission function repairs permissions for GPOs based on the specified criteria. It analyzes the permissions of GPOs and adds necessary permissions if they are missing.

## Guides & Samples

Authored walkthroughs and practical samples linked to this command.

- [Find Group Policy permission issues](/projects/gpozaurr/examples/find-group-policy-permission-issues/) Example
  
  A focused example for reviewing and understanding GPO permission findings.

## Examples

### Example 1

```powershell
Repair-GPOZaurrPermission -Type 'All' -Forest 'ContosoForest' -IncludeDomains @('Domain1', 'Domain2') -ExcludeDomains @('Domain3') -ExtendedForestInformation $info -LimitProcessing 100
Repairs permissions for all types of users in the 'ContosoForest' forest, including only 'Domain1' and 'Domain2' while excluding 'Domain3', with extended forest information and processing a maximum of 100 GPOs.
```

## Parameters

**-ExcludeDomains String[] optionalposition: 2**

Specifies an array of domains to exclude from the analysis.

**-ExtendedForestInformation IDictionary optionalposition: 4**

Specifies additional information about the forest.

**-Forest String optionalposition: 1aliases: ForestName**

Specifies the forest name to analyze GPO permissions.

**-IncludeDomains String[] optionalposition: 3aliases: Domain, Domains**

Specifies an array of domains to include in the analysis.

**-LimitProcessing Int32 optionalposition: 5**

Specifies the maximum number of GPOs to process.

**-Type String[] requiredposition: 0**

Specifies the type of permissions to repair. Valid values are 'AuthenticatedUsers', 'Unknown', 'System', 'Administrative', and 'All'.

Possible values: `AuthenticatedUsers`, `Unknown`, `System`, `Administrative`, `All`

## Common Parameters

This command supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable.

For more information, see [about_CommonParameters](https://learn.microsoft.com/powershell/module/microsoft.powershell.core/about/about_commonparameters).

Evotec API Reference Copyright 2026 Evotec Services

<!-- PowerForge markdown artifact sha256:3B8D4F22BAC603F3F3948672FCF0A7C82E13B3E264D72A04D9B98E7D6F6CBD4B -->
