Command
Get-GPOZaurrFolders
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 SetsDescription
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
- Indicates whether to return the output as a hashtable.
- -ExcludeDomains String[]
- Specifies domains to exclude from the retrieval.
- -ExtendedForestInformation IDictionary
- Specifies additional information about the forest.
- -FolderType String
- Specifies the type of folders to retrieve. Valid values are 'All', 'NTFRS', 'Empty'.
- Possible values:
All,NTFRS,Empty - -Forest String
- Specifies the forest name to retrieve information for.
- -IncludeDomains String[]
- Specifies domains to include in the retrieval.
- -Type String[]
- 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.