API Reference
Command
Get-ADXComputer
Retrieves Active Directory computers in list mode or a single computer by identity.
Examples
Example 1: Default identity mode with a single expected match
Get-ADXComputer -Identity 'SRV-APP-01$' -Domain 'contoso.com'
Example 2: Return all matches across queried domains
Get-ADXComputer -Identity 'SRV-APP-01$' -Domain 'contoso.com','fabrikam.com' -AllMatches
Example 3: Return all matches across forest domains
Get-ADXComputer -Identity 'SRV-APP-01$' -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-ADXComputer -Identity <string> [-AllMatches] [-Domain <string[]>] [-IncludeTrustedDomains] [-Property <string[]>] [-Scope <CurrentDomain|Forest|TrustedForests|ExplicitDomains>] [<CommonParameters>]#Parameter set:
By IdentityParameters
- Identity string
- Gets or sets computer identity (sAMAccountName, dNSHostName, DN, or name) for single-object mode.
- AllMatches SwitchParameter
- 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[]
- Gets or sets domain DNS names. In list mode defaults to current domain.
- IncludeTrustedDomains SwitchParameter
- Includes trusted domains when using forest-based scopes.
- Property string[]
- Gets or sets optional additional LDAP attributes to return in identity mode.
- Scope DirectoryScenarioScope
- Default scope used when -Domain is not provided. Possible values: CurrentDomain, Forest, TrustedForests, ExplicitDomains
- Possible values:
CurrentDomain,Forest,TrustedForests,ExplicitDomains
Outputs
ADPlayground.ComputerRecord, ADPlayground.Computers.ComputerAgingView, ADPlayground.Computers.ComputerReportingRow, ADPlayground.DirectoryObjectSnapshot
Get-ADXComputer [-Domain <string[]>] [-Filter <Enabled>] [-First <int>] [-IncludeBitLocker] [-IncludeTrustedDomains] [-MinInactiveDays <int>] [-MinPasswordAgeDays <int>] [-PropertySet <Basic|Full>] [-ResolveTrueLastLogon] [-Scope <CurrentDomain|Forest|TrustedForests|ExplicitDomains>] [-Skip <int>] [-TrueLastLogonDop <int>] [-View <Default>] [<CommonParameters>]#Parameter set:
By Filter + FirstParameters
- Domain string[]
- Gets or sets domain DNS names. In list mode defaults to current domain.
- Filter ComputerFilter[]
- One or more filters in list mode. Possible values: None, Enabled, Disabled, ServersOnly, WorkstationsOnly, WithLaps, WithoutLaps, LapsExpired, UnconstrainedDelegation, ConstrainedDelegation, Rc4Only, AesDisabled, HasRbcd, IncludeAzureAdKerberos
- Possible values:
Enabled,Disabled,ServersOnly,WorkstationsOnly,WithLaps,WithoutLaps,LapsExpired,UnconstrainedDelegation,ConstrainedDelegation,Rc4Only,AesDisabled,HasRbcd,IncludeAzureAdKerberos - First int
- Limits the number of returned rows after -Skip in list mode.
- IncludeBitLocker SwitchParameter
- Include BitLocker recovery summary in list mode.
- IncludeTrustedDomains SwitchParameter
- Includes trusted domains when using forest-based scopes.
- MinInactiveDays int
- Minimum inactivity (days) in list mode.
- MinPasswordAgeDays int
- Minimum password age (days) in list mode.
- PropertySet ComputerProperties
- Property set to retrieve in list mode (Basic by default). Possible values: Basic, Full
- Possible values:
Basic,Full - ResolveTrueLastLogon SwitchParameter
- Resolve authoritative lastLogon across all DCs in list mode.
- Scope DirectoryScenarioScope
- Default scope used when -Domain is not provided. Possible values: CurrentDomain, Forest, TrustedForests, ExplicitDomains
- Possible values:
CurrentDomain,Forest,TrustedForests,ExplicitDomains - Skip int
- Skips the specified number of rows after deterministic ordering in list mode.
- TrueLastLogonDop int
- Parallelism for true last logon resolution in list mode (default 4).
- View AdxComputersView
- Output view in list mode. Possible values: Default, Base, Security, Compact, Laps, LapsSummary, LapsDetail, Delegation, BitLocker, Aging, Health, Risk
- Possible values:
Default,Base,Security,Compact,Laps,LapsSummary,LapsDetail,Delegation,BitLocker,Aging,Health,Risk
Outputs
ADPlayground.ComputerRecord, ADPlayground.Computers.ComputerAgingView, ADPlayground.Computers.ComputerReportingRow, ADPlayground.DirectoryObjectSnapshot