API Reference
Function
Skip-GroupPolicy
Used within ScriptBlocks only. Allows to exclude Group Policy from being affected by fixes
Remarks
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'
}
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
Skip-GroupPolicy [-DomaiName <String>] [-Name <String>] [<CommonParameters>]
#
Parameter set:
NameParameters
- DomaiName String
- Define DomainName where Group Policy is located. Otherwise each domain will be checked and skipped if found with same name.
- Name String
- Define Group Policy Name to skip
Skip-GroupPolicy [-DomaiName <String>] [-GUID <String>] [<CommonParameters>]
#
Parameter set:
GuidParameters
- DomaiName String
- Define DomainName where Group Policy is located. Otherwise each domain will be checked and skipped if found with same name.
- GUID String