API Reference
Get-GPOZaurrAD
Retrieves Group Policy Objects (GPOs) information from Active Directory.
Remarks
This function retrieves information about Group Policy Objects (GPOs) from Active Directory based on specified criteria such as GPO name, GPO GUID, date range, and forest details.
Examples
EXAMPLE 1
PS >
Get-GPOZaurrAD -GPOName "ExampleGPO"
Description: Retrieves information about a GPO with the name "ExampleGPO".
EXAMPLE 2
PS >
Get-GPOZaurrAD -GPOGuid "{12345678-1234-1234-1234-123456789012}"
Description: Retrieves information about a GPO with the specified GUID.
EXAMPLE 3
PS >
Get-GPOZaurrAD -Forest "example.com" -IncludeDomains "domain1", "domain2" -DateRange "Last30Days"
Description: Retrieves GPO information from the forest "example.com" for domains "domain1" and "domain2" created or modified in the last 30 days.
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
Get-GPOZaurrAD [-DateFrom <DateTime>] [-DateProperty <WhenCreated|WhenChanged>] [-DateRange <PastHour>] [-DateTo <DateTime>] [-ExcludeDomains <String[]>] [-ExtendedForestInformation <IDictionary>] [-Forest <String>] [-IncludeDomains <String[]>] [<CommonParameters>]
#
DefaultParameters
- DateFrom DateTime
- Specifies the start date for filtering GPOs based on creation or modification date.
- DateProperty String[]
- Specifies the property (WhenCreated or WhenChanged) to use for filtering GPOs based on date.
- Possible values:
WhenCreated,WhenChanged - DateRange String
- Specifies a predefined date range for filtering GPOs based on creation or modification date.
- Possible values:
PastHour,CurrentHour,PastDay,CurrentDay,PastMonth,CurrentMonth,PastQuarter,CurrentQuarter,Last14Days,Last21Days,Last30Days,Last7Days,Last3Days,Last1Days - DateTo DateTime
- Specifies the end date for filtering GPOs based on creation or modification date.
- ExcludeDomains String[]
- Specifies an array of domains to exclude from the search.
- ExtendedForestInformation IDictionary
- Specifies additional forest information to include in the output.
- Forest String
- Specifies the forest name to search for GPOs.
- IncludeDomains String[]
- Specifies an array of domains to include in the search.
Get-GPOZaurrAD [-DateFrom <DateTime>] [-DateProperty <WhenCreated|WhenChanged>] [-DateRange <PastHour>] [-DateTo <DateTime>] [-ExcludeDomains <String[]>] [-ExtendedForestInformation <IDictionary>] [-Forest <String>] [-GPOName <String>] [-IncludeDomains <String[]>] [<CommonParameters>]
#
GPONameParameters
- DateFrom DateTime
- Specifies the start date for filtering GPOs based on creation or modification date.
- DateProperty String[]
- Specifies the property (WhenCreated or WhenChanged) to use for filtering GPOs based on date.
- Possible values:
WhenCreated,WhenChanged - DateRange String
- Specifies a predefined date range for filtering GPOs based on creation or modification date.
- Possible values:
PastHour,CurrentHour,PastDay,CurrentDay,PastMonth,CurrentMonth,PastQuarter,CurrentQuarter,Last14Days,Last21Days,Last30Days,Last7Days,Last3Days,Last1Days - DateTo DateTime
- Specifies the end date for filtering GPOs based on creation or modification date.
- ExcludeDomains String[]
- Specifies an array of domains to exclude from the search.
- ExtendedForestInformation IDictionary
- Specifies additional forest information to include in the output.
- Forest String
- Specifies the forest name to search for GPOs.
- GPOName String
- Specifies the name of the GPO to retrieve.
- IncludeDomains String[]
- Specifies an array of domains to include in the search.
Get-GPOZaurrAD [-DateFrom <DateTime>] [-DateProperty <WhenCreated|WhenChanged>] [-DateRange <PastHour>] [-DateTo <DateTime>] [-ExcludeDomains <String[]>] [-ExtendedForestInformation <IDictionary>] [-Forest <String>] [-GPOGuid <String>] [-IncludeDomains <String[]>] [<CommonParameters>]
#
GPOGUIDParameters
- DateFrom DateTime
- Specifies the start date for filtering GPOs based on creation or modification date.
- DateProperty String[]
- Specifies the property (WhenCreated or WhenChanged) to use for filtering GPOs based on date.
- Possible values:
WhenCreated,WhenChanged - DateRange String
- Specifies a predefined date range for filtering GPOs based on creation or modification date.
- Possible values:
PastHour,CurrentHour,PastDay,CurrentDay,PastMonth,CurrentMonth,PastQuarter,CurrentQuarter,Last14Days,Last21Days,Last30Days,Last7Days,Last3Days,Last1Days - DateTo DateTime
- Specifies the end date for filtering GPOs based on creation or modification date.
- ExcludeDomains String[]
- Specifies an array of domains to exclude from the search.
- ExtendedForestInformation IDictionary
- Specifies additional forest information to include in the output.
- Forest String
- Specifies the forest name to search for GPOs.
- GPOGuid String
- Specifies the GUID of the GPO to retrieve.
- IncludeDomains String[]
- Specifies an array of domains to include in the search.