API Reference
Function
Optimize-GPOZaurr
Enables or disables user/computer section of group policy based on it's content.
Remarks
Enables or disables user/computer section of group policy based on it's content.
Examples
EXAMPLE 1
PS >
Optimize-GPOZaurr -All -WhatIf -Verbose -LimitProcessing 2
EXAMPLE 2
PS >
Optimize-GPOZaurr -All -WhatIf -Verbose -LimitProcessing 2 {
Skip-GroupPolicy -Name 'TEST | Drive Mapping 1'
Skip-GroupPolicy -Name 'TEST | Drive Mapping 2'
}
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
Optimize-GPOZaurr [-ExcludeDomains <String[]>] [-ExcludeGroupPolicies <ScriptBlock>] [-ExtendedForestInformation <IDictionary>] [-Forest <String>] -GPOName <String> [-IncludeDomains <String[]>] [-LimitProcessing <Int32>] [<CommonParameters>]
#
Parameter set:
GPONameParameters
- 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
- 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
Optimize-GPOZaurr [-ExcludeDomains <String[]>] [-ExcludeGroupPolicies <ScriptBlock>] [-ExtendedForestInformation <IDictionary>] [-Forest <String>] -GPOGuid <String> [-IncludeDomains <String[]>] [-LimitProcessing <Int32>] [<CommonParameters>]
#
Parameter set:
GPOGUIDParameters
- 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
- GPOGuid String
- 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
Optimize-GPOZaurr -All [-ExcludeDomains <String[]>] [-ExcludeGroupPolicies <ScriptBlock>] [-ExtendedForestInformation <IDictionary>] [-Forest <String>] [-IncludeDomains <String[]>] [-LimitProcessing <Int32>] [<CommonParameters>]
#
Parameter set:
AllParameters
- All SwitchParameter
- 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
- 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