TestimoX

API Reference

Command

Get-ADXGroup

Namespace ADPlayground.PowerShell
Outputs
ADPlayground.DirectoryGraphSnapshot ADPlayground.DirectoryGroupMembersSnapshot ADPlayground.DirectoryObjectSnapshot ADPlayground.GroupInfo

Retrieves Active Directory groups in list mode or a single group by identity.

Examples

Authored help example

Example 1: Default identity mode with a single expected match


Get-ADXGroup -Identity 'Domain Admins' -Domain 'contoso.com'
        

Example 2: Return all matches across queried domains


Get-ADXGroup -Identity 'Helpdesk' -Domain 'contoso.com','fabrikam.com' -AllMatches
        

Example 3: Return all matches across forest domains


Get-ADXGroup -Identity 'Helpdesk' -AllMatches
        

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-ADXGroup -Identity <string> [-AllMatches] [-Domain <string[]>] [-IncludeMembers] [-IncludeTrustedDomains] [-MemberRecursionDepth <int>] [-Property <string[]>] [-RecursiveMembers] [-Scope <CurrentDomain|Forest|TrustedForests|ExplicitDomains>] [<CommonParameters>]
#
Parameter set: By Identity

Parameters

Identity string requiredposition: 0pipeline: falsealiases: CommonName, DistinguishedName, DN, Mail, Name, SamAccountName
Gets or sets group identity (sAMAccountName, DN, mail, or name) for single-object mode.
AllMatches SwitchParameter optionalposition: namedpipeline: false
Gets or sets whether identity mode should return all matches across queried domains. By default (switch not set), identity mode expects a single match and throws on ambiguity.
Domain string[] optionalposition: namedpipeline: falsealiases: DomainName
Gets or sets domain DNS names. In list mode defaults to current domain.
IncludeMembers SwitchParameter optionalposition: namedpipeline: false
Gets or sets whether to include direct group memberships in identity mode.
IncludeTrustedDomains SwitchParameter optionalposition: namedpipeline: false
Includes trusted domains when using forest-based scopes.
MemberRecursionDepth int optionalposition: namedpipeline: false
Gets or sets the maximum recursion depth for recursive member resolution in identity mode.
Property string[] optionalposition: namedpipeline: false
Gets or sets optional additional LDAP attributes to return in identity mode.
RecursiveMembers SwitchParameter optionalposition: namedpipeline: false
Gets or sets whether to resolve recursive members in identity mode.
Scope DirectoryScenarioScope optionalposition: namedpipeline: falsevalues: 4
Default scope used when -Domain is not provided. Possible values: CurrentDomain, Forest, TrustedForests, ExplicitDomains
Possible values: CurrentDomain, Forest, TrustedForests, ExplicitDomains

Outputs

ADPlayground.DirectoryGraphSnapshot, ADPlayground.DirectoryGroupMembersSnapshot, ADPlayground.DirectoryObjectSnapshot, ADPlayground.GroupInfo

Get-ADXGroup [-AllowCrossDomain <bool>] [-AllowCrossForest <bool>] [-CacheDurationSeconds <int>] [-Domain <string[]>] [-EnableGraphSnapshotPersistence] [-Filter <string>] [-First <int>] [-GraphSnapshotDomainController <string>] [-GraphSnapshotMaxAgeSeconds <int>] [-GraphSnapshotPath <string>] [-GraphSnapshotRefreshOnUsnChange <bool>] [-IncludeMemberCount] [-IncludeNestingSummary] [-IncludeTrustedDomains] [-LDAPFilter <string>] [-MaxParallel <int>] [-MaxTraversalDepth <int>] [-PageSize <int>] [-PropertySet <Basic|Full>] [-Scope <CurrentDomain|Forest|TrustedForests|ExplicitDomains>] [-SearchBase <string>] [-Skip <int>] [-TrustMode <Default|Strict|BestEffort>] [-UseCache] [-View <Default|Summary|Graph>] [<CommonParameters>]
#
Parameter set: By AllowCrossDomain + AllowCrossForest

Parameters

AllowCrossDomain bool optionalposition: namedpipeline: false
Allows cross-domain entries in -View Graph output (default: $true).
AllowCrossForest bool optionalposition: namedpipeline: false
Allows cross-forest entries in -View Graph output (default: $true).
CacheDurationSeconds int optionalposition: namedpipeline: false
Cache duration in seconds when -UseCache is set (default 120).
Domain string[] optionalposition: namedpipeline: falsealiases: DomainName
Gets or sets domain DNS names. In list mode defaults to current domain.
EnableGraphSnapshotPersistence SwitchParameter optionalposition: namedpipeline: false
Enables persisted graph snapshot reuse for -View Graph.
Filter string optionalposition: namedpipeline: false
PowerShell-style filter pattern (simple) in list mode.
First int optionalposition: namedpipeline: false
Limits the number of returned rows after -Skip in list mode.
GraphSnapshotDomainController string optionalposition: namedpipeline: false
Optional domain controller hint used for RootDSE USN checks in -View Graph mode.
GraphSnapshotMaxAgeSeconds int optionalposition: namedpipeline: false
Maximum persisted graph snapshot age in seconds for -View Graph (default 600).
GraphSnapshotPath string optionalposition: namedpipeline: false
Optional persisted graph snapshot file path for -View Graph.
GraphSnapshotRefreshOnUsnChange bool optionalposition: namedpipeline: false
When $true, refreshes persisted snapshots on directory USN changes in -View Graph mode.
IncludeMemberCount SwitchParameter optionalposition: namedpipeline: false
Include direct member count for each group in list mode.
IncludeNestingSummary SwitchParameter optionalposition: namedpipeline: false
Compute nested membership summary in list mode.
IncludeTrustedDomains SwitchParameter optionalposition: namedpipeline: false
Includes trusted domains when using forest-based scopes.
LDAPFilter string optionalposition: namedpipeline: false
Raw LDAP filter in list mode; takes precedence over -Filter.
MaxParallel int optionalposition: namedpipeline: false
Maximum parallelism when computing -IncludeNestingSummary (default 3).
MaxTraversalDepth int optionalposition: namedpipeline: false
Maximum traversal depth for -View Graph; when omitted, service defaults are used.
PageSize int optionalposition: namedpipeline: false
LDAP page size in list mode (default 1000).
PropertySet GroupProperties optionalposition: namedpipeline: falsevalues: 2
Property set for groups in list mode. Possible values: Basic, Full
Possible values: Basic, Full
Scope DirectoryScenarioScope optionalposition: namedpipeline: falsevalues: 4
Default scope used when -Domain is not provided. Possible values: CurrentDomain, Forest, TrustedForests, ExplicitDomains
Possible values: CurrentDomain, Forest, TrustedForests, ExplicitDomains
SearchBase string optionalposition: namedpipeline: false
Search base DN in list mode.
Skip int optionalposition: namedpipeline: false
Skips the specified number of rows after deterministic ordering in list mode.
TrustMode DirectoryGraphTrustMode optionalposition: namedpipeline: falsevalues: 3
Trust posture for -View Graph partition handling. Possible values: Default, Strict, BestEffort
Possible values: Default, Strict, BestEffort
UseCache SwitchParameter optionalposition: namedpipeline: false
Enable in-memory caching in list mode.
View AdxGroupsView optionalposition: namedpipeline: falsevalues: 3
Output view in list mode: Default, Summary, or Graph. Possible values: Default, Summary, Graph
Possible values: Default, Summary, Graph

Outputs

ADPlayground.DirectoryGraphSnapshot, ADPlayground.DirectoryGroupMembersSnapshot, ADPlayground.DirectoryObjectSnapshot, ADPlayground.GroupInfo