Evotec

Project

GPOZaurr

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

Stars 1,166
Forks 115
Open issues 16
PowerShell Gallery downloads 417,764
Release v1.1.9
Language: PowerShell Updated: 2026-04-11

API Reference

Function

Get-GPOZaurrFolders

Namespace GPOZaurr

Retrieves information about GPO folders within specified domains.

Remarks

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

Authored help example

EXAMPLE 1

PS >


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

PS >


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.
        

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-GPOZaurrFolders [-AsHashTable] [-ExcludeDomains <String[]>] [-ExtendedForestInformation <IDictionary>] [-FolderType <All|NTFRS|Empty>] [-Forest <String>] [-IncludeDomains <String[]>] [-Type <All|Netlogon|Sysvol>] [<CommonParameters>]
#
Parameter set: All Parameter Sets

Parameters

AsHashTable SwitchParameter optionalposition: namedpipeline: False
Indicates whether to return the output as a hashtable.
ExcludeDomains String[] optionalposition: 3pipeline: False
Specifies domains to exclude from the retrieval.
ExtendedForestInformation IDictionary optionalposition: 5pipeline: False
Specifies additional information about the forest.
FolderType String optionalposition: 1pipeline: Falsevalues: 3
Specifies the type of folders to retrieve. Valid values are 'All', 'NTFRS', 'Empty'.
Possible values: All, NTFRS, Empty
Forest String optionalposition: 2pipeline: Falsealiases: ForestName
Specifies the forest name to retrieve information for.
IncludeDomains String[] optionalposition: 4pipeline: Falsealiases: Domain, Domains
Specifies domains to include in the retrieval.
Type String[] optionalposition: 0pipeline: Falsevalues: 3
Specifies the type of folders to retrieve. Valid values are 'All', 'Netlogon', 'Sysvol'.
Possible values: All, Netlogon, Sysvol