# Get-GPOZaurrAD

Retrieves Group Policy Objects (GPOs) information from Active Directory.

Project

GPOZaurr

GPOZaurr helps inspect, report on, and remediate Group Policy environments with PowerShell.

[View on GitHub](https://github.com/EvotecIT/GPOZaurr) [Visit Website](#) [Releases](https://github.com/EvotecIT/GPOZaurr/releases/tag/v1.1.10) [Changelog](#) [Get package](https://www.powershellgallery.com/packages/GPOZaurr/1.1.9)

Stars **1,257**

Forks **121**

Open issues **15**

PowerShell Gallery downloads **421,558**

Release **v1.1.11**

Language: PowerShell Updated: 2026-10-30

Command 

**Module**

`GPOZaurr`

Retrieves Group Policy Objects (GPOs) information from Active Directory.

## Syntax

```
Get-GPOZaurrAD
[-DateFrom <DateTime>]
[-DateProperty <WhenCreated|WhenChanged>]
[-DateRange <String>]
[-DateTo <DateTime>]
[-ExcludeDomains <String[]>]
[-ExtendedForestInformation <IDictionary>]
[-Forest <String>]
[-IncludeDomains <String[]>]
[<CommonParameters>]
```

[#](#method-get-gpozaurrad-datetime-string-string-datetime-string-idictionary-string-string)

Parameter set: `Default`

```
Get-GPOZaurrAD
[-DateFrom <DateTime>]
[-DateProperty <WhenCreated|WhenChanged>]
[-DateRange <String>]
[-DateTo <DateTime>]
[-ExcludeDomains <String[]>]
[-ExtendedForestInformation <IDictionary>]
[-Forest <String>]
[-GPOName <String>]
[-IncludeDomains <String[]>]
[<CommonParameters>]
```

[#](#method-get-gpozaurrad-datetime-string-string-datetime-string-idictionary-string-string-string)

Parameter set: `GPOName`

```
Get-GPOZaurrAD
[-DateFrom <DateTime>]
[-DateProperty <WhenCreated|WhenChanged>]
[-DateRange <String>]
[-DateTo <DateTime>]
[-ExcludeDomains <String[]>]
[-ExtendedForestInformation <IDictionary>]
[-Forest <String>]
[-GPOGuid <String>]
[-IncludeDomains <String[]>]
[<CommonParameters>]
```

[#](#method-get-gpozaurrad-datetime-string-string-datetime-string-idictionary-string-string-string-2)

Parameter set: `GPOGUID`

## Description

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

```powershell
Get-GPOZaurrAD -GPOName "ExampleGPO"
```

Description: Retrieves information about a GPO with the name "ExampleGPO".

### Example 2

```powershell
Get-GPOZaurrAD -GPOGuid "{12345678-1234-1234-1234-123456789012}"
```

Description: Retrieves information about a GPO with the specified GUID.

### Example 3

```powershell
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.

## Parameters

**-DateFrom DateTime optional**

Specifies the start date for filtering GPOs based on creation or modification date.

**-DateProperty String[] optional**

Specifies the property (WhenCreated or WhenChanged) to use for filtering GPOs based on date.

Possible values: `WhenCreated`, `WhenChanged`

**-DateRange String optional**

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 optional**

Specifies the end date for filtering GPOs based on creation or modification date.

**-ExcludeDomains String[] optional**

Specifies an array of domains to exclude from the search.

**-ExtendedForestInformation IDictionary optional**

Specifies additional forest information to include in the output.

**-Forest String optionalaliases: ForestName**

Specifies the forest name to search for GPOs.

**-IncludeDomains String[] optionalaliases: Domain, Domains**

Specifies an array of domains to include in the search.

**-GPOName String optionalsets: GPOName**

Specifies the name of the GPO to retrieve.

**-GPOGuid String optionalaliases: GPOID, GUIDsets: GPOGUID**

Specifies the GUID of the GPO to retrieve.

## 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](https://learn.microsoft.com/powershell/module/microsoft.powershell.core/about/about_commonparameters).

Evotec API Reference Copyright 2026 Evotec Services

<!-- PowerForge markdown artifact sha256:4B85B3230BB59194728C061BFE438415D6FFAC8539C5B0A6C2A51C9B96FA5854 -->
