Project

GPOZaurr

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

Stars 1,250
Forks 119
Open issues 15
PowerShell Gallery downloads 421,558
Release v1.1.11
Language: PowerShell Updated: 2026-10-09
Command

Skip-GroupPolicy

Module GPOZaurr

Used within ScriptBlocks only. Allows to exclude Group Policy from being affected by fixes

Syntax

Skip-GroupPolicy [-DomaiName <String>] [-Name <String>] [<CommonParameters>]
#
Parameter set: Name
Skip-GroupPolicy [-DomaiName <String>] [-GUID <String>] [<CommonParameters>]
#
Parameter set: Guid

Description

Used within ScriptBlocks only. Allows to exclude Group Policy from being affected by fixes. Only some commands support it. The goal is to support all cmdlets.

Examples

Authored help example

EXAMPLE 1

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

EXAMPLE 2

Remove-GPOZaurr -Type Empty, Unlinked -BackupPath "$Env:UserProfile\Desktop\GPO" -BackupDated -LimitProcessing 2 -Verbose -WhatIf {
    Skip-GroupPolicy -Name 'TEST | Drive Mapping 1'
    Skip-GroupPolicy -Name 'TEST | Drive Mapping 2' -DomaiName 'ad.evotec.pl'
}

Parameters

-DomaiName String optional
Define DomainName where Group Policy is located. Otherwise each domain will be checked and skipped if found with same name.
-Name String optionalaliases: DisplayName, GpoNamesets: Name
Define Group Policy Name to skip
-GUID String optionalaliases: IDsets: Guid
Specifies a value for guid.

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.