Files
GPOZaurr/Docs/Skip-GroupPolicy.md
Przemysław Kłys ecef7a7f16 update docs
2026-05-22 15:50:38 +02:00

2.5 KiB

external help file, Module Name, online version, schema
external help file Module Name online version schema
GPOZaurr-help.xml GPOZaurr https://github.com/EvotecIT/GPOZaurr 2.0.0

Skip-GroupPolicy

SYNOPSIS

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

SYNTAX

Name (Default)

Skip-GroupPolicy [-Name <string>] [-DomaiName <string>] [<CommonParameters>]

Guid

Skip-GroupPolicy [-GUID <string>] [-DomaiName <string>] [<CommonParameters>]

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

EXAMPLE 1

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

EXAMPLE 2

PS > 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

Define DomainName where Group Policy is located. Otherwise each domain will be checked and skipped if found with same name.

Type: String
Parameter Sets: Name, Guid
Aliases:
Possible values:

Required: False
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: True

-GUID

{{ Fill GUID Description }}

Type: String
Parameter Sets: Guid
Aliases: ID
Possible values:

Required: False
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: True

-Name

Define Group Policy Name to skip

Type: String
Parameter Sets: Name
Aliases: GpoName, DisplayName
Possible values:

Required: False
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: True

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS

  • None

OUTPUTS

  • None
  • None