Command
Optimize-GPOZaurr
Enables or disables user/computer section of group policy based on it's content.
Syntax
Optimize-GPOZaurr
[-ExcludeDomains <String[]>]
[[-ExcludeGroupPolicies] <ScriptBlock>]
[-ExtendedForestInformation <IDictionary>]
[-Forest <String>]
-GPOName <String>
[-IncludeDomains <String[]>]
[-LimitProcessing <Int32>]
[<CommonParameters>]#Parameter set:
GPONameOptimize-GPOZaurr
[-ExcludeDomains <String[]>]
[[-ExcludeGroupPolicies] <ScriptBlock>]
[-ExtendedForestInformation <IDictionary>]
[-Forest <String>]
-GPOGuid <String>
[-IncludeDomains <String[]>]
[-LimitProcessing <Int32>]
[<CommonParameters>]#Parameter set:
GPOGUIDOptimize-GPOZaurr
-All
[-ExcludeDomains <String[]>]
[[-ExcludeGroupPolicies] <ScriptBlock>]
[-ExtendedForestInformation <IDictionary>]
[-Forest <String>]
[-IncludeDomains <String[]>]
[-LimitProcessing <Int32>]
[<CommonParameters>]#Parameter set:
AllExamples
Example 1
Optimize-GPOZaurr -All -WhatIf -Verbose -LimitProcessing 2Example 2
Optimize-GPOZaurr -All -WhatIf -Verbose -LimitProcessing 2 {
Skip-GroupPolicy -Name 'TEST | Drive Mapping 1'
Skip-GroupPolicy -Name 'TEST | Drive Mapping 2'
}Parameters
- -ExcludeDomains String[]
- Exclude domain from search, by default whole forest is scanned
- -ExcludeGroupPolicies ScriptBlock
- Provide a list of group policies to skip using Skip-GroupPolicy cmdlet
- -ExtendedForestInformation IDictionary
- Ability to provide Forest Information from another command to speed up processing
- -Forest String
- Target different Forest, by default current forest is used
- -GPOName String
- Specifies a value for gpo name.
- -IncludeDomains String[]
- Include only specific domains, by default whole forest is scanned
- -LimitProcessing Int32
- Allows to specify maximum number of items that will be fixed in a single run. It doesn't affect amount of GPOs processed
- -GPOGuid String
- Specifies a value for gpo guid.
- -All SwitchParameter
- Specifies the all switch.
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.