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-GPOZaurrLegacyFiles

Namespace GPOZaurr

Retrieves legacy Group Policy Object (GPO) files from the SYSVOL directory of specified domains within a forest.

Remarks

The Get-GPOZaurrLegacyFiles function retrieves legacy GPO files, such as '*.adm' and 'admfiles.ini', from the SYSVOL directory of specified domains within a forest. It provides detailed information about these files including their name, full path, creation time, last write time, attributes, associated domain name, and directory name.

Examples

Authored help example

EXAMPLE 1

PS >


Get-GPOZaurrLegacyFiles -Forest "contoso.com" -IncludeDomains "domain1", "domain2" -ExcludeDomains "domain3" -ExtendedForestInformation $additionalInfo
        

Retrieves legacy GPO files from the "contoso.com" forest for "domain1" and "domain2" domains while excluding "domain3", using additional forest information.

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-GPOZaurrLegacyFiles [-ExcludeDomains <String[]>] [-ExtendedForestInformation <IDictionary>] [-Forest <String>] [-IncludeDomains <String[]>] [<CommonParameters>]
#
Parameter set: All Parameter Sets

Parameters

ExcludeDomains String[] optionalposition: 1pipeline: False
Specifies an array of domain names to exclude from the search for legacy GPO files.
ExtendedForestInformation IDictionary optionalposition: 3pipeline: False
Specifies additional information about the forest to enhance the retrieval process.
Forest String optionalposition: 0pipeline: Falsealiases: ForestName
Specifies the name of the forest from which to retrieve legacy GPO files.
IncludeDomains String[] optionalposition: 2pipeline: Falsealiases: Domain, Domains
Specifies an array of domain names to include in the search for legacy GPO files.