# Get-GPOZaurrLegacyFiles

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

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 legacy Group Policy Object (GPO) files from the SYSVOL directory of specified domains within a forest.

## Syntax

```
Get-GPOZaurrLegacyFiles
[[-ExcludeDomains] <String[]>]
[[-ExtendedForestInformation] <IDictionary>]
[[-Forest] <String>]
[[-IncludeDomains] <String[]>]
[<CommonParameters>]
```

[#](#method-get-gpozaurrlegacyfiles-string-idictionary-string-string)

Parameter set: `All Parameter Sets`

## Description

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

### Example 1

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

## Parameters

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

Specifies an array of domain names to exclude from the search for legacy GPO files.

**-ExtendedForestInformation IDictionary optionalposition: 3**

Specifies additional information about the forest to enhance the retrieval process.

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

Specifies the name of the forest from which to retrieve legacy GPO files.

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

Specifies an array of domain names to include in the search for legacy GPO files.

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