# Get-GPOZaurrFolders

Retrieves information about GPO folders within specified domains.

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 information about GPO folders within specified domains.

## Syntax

```
Get-GPOZaurrFolders
[-AsHashTable]
[[-ExcludeDomains] <String[]>]
[[-ExtendedForestInformation] <IDictionary>]
[[-FolderType] <All|NTFRS|Empty>]
[[-Forest] <String>]
[[-IncludeDomains] <String[]>]
[[-Type] <All|Netlogon|Sysvol>]
[<CommonParameters>]
```

[#](#method-get-gpozaurrfolders-switchparameter-string-idictionary-string-string-string-string)

Parameter set: `All Parameter Sets`

## Description

This function retrieves information about various GPO folders within specified domains, such as PolicyDefinitions, Policies, Scripts, GPO Starters, NETLOGON Scripts, DfsrPrivate, and SYSVOL Root.

## Examples

### Example 1

```powershell
Get-GPOZaurrFolders -Type All -FolderType All -Forest 'example.com' -IncludeDomains 'domain1', 'domain2' -ExcludeDomains 'domain3' -ExtendedForestInformation $info -AsHashTable
Retrieves information about all types of GPO folders within the specified domains in the forest 'example.com', excluding 'domain3', and including 'domain1' and 'domain2', with extended forest information.
```

### Example 2

```powershell
Get-GPOZaurrFolders -Type Sysvol -FolderType NTFRS -Forest 'example.com' -IncludeDomains 'domain1' -AsHashTable
Retrieves information about Sysvol folders using NTFRS type within the specified domain 'domain1' in the forest 'example.com' and returns the output as a hashtable.
```

## Parameters

**-AsHashTable SwitchParameter optional**

Indicates whether to return the output as a hashtable.

**-ExcludeDomains String[] optionalposition: 3**

Specifies domains to exclude from the retrieval.

**-ExtendedForestInformation IDictionary optionalposition: 5**

Specifies additional information about the forest.

**-FolderType String optionalposition: 1**

Specifies the type of folders to retrieve. Valid values are 'All', 'NTFRS', 'Empty'.

Possible values: `All`, `NTFRS`, `Empty`

**-Forest String optionalposition: 2aliases: ForestName**

Specifies the forest name to retrieve information for.

**-IncludeDomains String[] optionalposition: 4aliases: Domain, Domains**

Specifies domains to include in the retrieval.

**-Type String[] optionalposition: 0**

Specifies the type of folders to retrieve. Valid values are 'All', 'Netlogon', 'Sysvol'.

Possible values: `All`, `Netlogon`, `Sysvol`

## 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:A96FAA490C59D087E30E2402DC2AAC1C72D5E2BBC4DB9499EA2C962BE36CC6EF -->
