Evotec

Project

GPOZaurr

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

Stars 1,166
Forks 115
Open issues 16
PowerShell Gallery downloads 417,764
Release v1.1.9
Language: PowerShell Updated: 2026-04-11

API Reference

Function

Optimize-GPOZaurr

Namespace GPOZaurr

Enables or disables user/computer section of group policy based on it's content.

Remarks

Enables or disables user/computer section of group policy based on it's content.

Examples

Authored help example

EXAMPLE 1

PS >


Optimize-GPOZaurr -All -WhatIf -Verbose -LimitProcessing 2
        

EXAMPLE 2

PS >


Optimize-GPOZaurr -All -WhatIf -Verbose -LimitProcessing 2 {
    Skip-GroupPolicy -Name 'TEST | Drive Mapping 1'
    Skip-GroupPolicy -Name 'TEST | Drive Mapping 2'
}
        

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.

Syntax

Optimize-GPOZaurr [-ExcludeDomains <String[]>] [-ExcludeGroupPolicies <ScriptBlock>] [-ExtendedForestInformation <IDictionary>] [-Forest <String>] -GPOName <String> [-IncludeDomains <String[]>] [-LimitProcessing <Int32>] [<CommonParameters>]
#
Parameter set: GPOName

Parameters

ExcludeDomains String[] optionalposition: namedpipeline: False
Exclude domain from search, by default whole forest is scanned
ExcludeGroupPolicies ScriptBlock optionalposition: 1pipeline: False
Provide a list of group policies to skip using Skip-GroupPolicy cmdlet
ExtendedForestInformation IDictionary optionalposition: namedpipeline: False
Ability to provide Forest Information from another command to speed up processing
Forest String optionalposition: namedpipeline: Falsealiases: ForestName
Target different Forest, by default current forest is used
GPOName String requiredposition: namedpipeline: Falsealiases: DisplayName, Name
IncludeDomains String[] optionalposition: namedpipeline: Falsealiases: Domain, Domains
Include only specific domains, by default whole forest is scanned
LimitProcessing Int32 optionalposition: namedpipeline: False
Allows to specify maximum number of items that will be fixed in a single run. It doesn't affect amount of GPOs processed
Optimize-GPOZaurr [-ExcludeDomains <String[]>] [-ExcludeGroupPolicies <ScriptBlock>] [-ExtendedForestInformation <IDictionary>] [-Forest <String>] -GPOGuid <String> [-IncludeDomains <String[]>] [-LimitProcessing <Int32>] [<CommonParameters>]
#
Parameter set: GPOGUID

Parameters

ExcludeDomains String[] optionalposition: namedpipeline: False
Exclude domain from search, by default whole forest is scanned
ExcludeGroupPolicies ScriptBlock optionalposition: 1pipeline: False
Provide a list of group policies to skip using Skip-GroupPolicy cmdlet
ExtendedForestInformation IDictionary optionalposition: namedpipeline: False
Ability to provide Forest Information from another command to speed up processing
Forest String optionalposition: namedpipeline: Falsealiases: ForestName
Target different Forest, by default current forest is used
GPOGuid String requiredposition: namedpipeline: Falsealiases: GPOID, GUID
IncludeDomains String[] optionalposition: namedpipeline: Falsealiases: Domain, Domains
Include only specific domains, by default whole forest is scanned
LimitProcessing Int32 optionalposition: namedpipeline: False
Allows to specify maximum number of items that will be fixed in a single run. It doesn't affect amount of GPOs processed
Optimize-GPOZaurr -All [-ExcludeDomains <String[]>] [-ExcludeGroupPolicies <ScriptBlock>] [-ExtendedForestInformation <IDictionary>] [-Forest <String>] [-IncludeDomains <String[]>] [-LimitProcessing <Int32>] [<CommonParameters>]
#
Parameter set: All

Parameters

All SwitchParameter requiredposition: namedpipeline: False
ExcludeDomains String[] optionalposition: namedpipeline: False
Exclude domain from search, by default whole forest is scanned
ExcludeGroupPolicies ScriptBlock optionalposition: 1pipeline: False
Provide a list of group policies to skip using Skip-GroupPolicy cmdlet
ExtendedForestInformation IDictionary optionalposition: namedpipeline: False
Ability to provide Forest Information from another command to speed up processing
Forest String optionalposition: namedpipeline: Falsealiases: ForestName
Target different Forest, by default current forest is used
IncludeDomains String[] optionalposition: namedpipeline: Falsealiases: Domain, Domains
Include only specific domains, by default whole forest is scanned
LimitProcessing Int32 optionalposition: namedpipeline: False
Allows to specify maximum number of items that will be fixed in a single run. It doesn't affect amount of GPOs processed