API Reference
Get-GPOZaurrLegacyFiles
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
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>]
#
All Parameter SetsParameters
- ExcludeDomains String[]
- Specifies an array of domain names to exclude from the search for legacy GPO files.
- ExtendedForestInformation IDictionary
- Specifies additional information about the forest to enhance the retrieval process.
- Forest String
- Specifies the name of the forest from which to retrieve legacy GPO files.
- IncludeDomains String[]
- Specifies an array of domain names to include in the search for legacy GPO files.