Project

GPOZaurr

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

Stars 1,256
Forks 120
Open issues 15
PowerShell Gallery downloads 421,558
Release v1.1.11
Language: PowerShell Updated: 2026-10-30
Command

Get-GPOZaurrFolders

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>]
#
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

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

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.