# Skip-GroupPolicy

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

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`

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

## Syntax

```
Skip-GroupPolicy
[-DomaiName <String>]
[-Name <String>]
[<CommonParameters>]
```

[#](#method-skip-grouppolicy-string-string)

Parameter set: `Name`

```
Skip-GroupPolicy
[-DomaiName <String>]
[-GUID <String>]
[<CommonParameters>]
```

[#](#method-skip-grouppolicy-string-string-2)

Parameter set: `Guid`

## Description

. Only some commands support it. The goal is to support all cmdlets.

## Examples

### Example 1

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

### Example 2

```powershell
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](https://learn.microsoft.com/powershell/module/microsoft.powershell.core/about/about_commonparameters).

Evotec API Reference Copyright 2026 Evotec Services

<!-- PowerForge markdown artifact sha256:4D981370AD2BAD987CA3C4CC134B007C93698A5B20C9769DBE10C0454A3FBA51 -->
