TestimoX

API Reference

Command

Get-ADXComputer

Namespace ADPlayground.PowerShell
Outputs
ADPlayground.ComputerRecord ADPlayground.Computers.ComputerAgingView ADPlayground.Computers.ComputerReportingRow ADPlayground.DirectoryObjectSnapshot

Retrieves Active Directory computers in list mode or a single computer by identity.

Examples

Authored help example

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 Identity

Parameters

Identity string requiredposition: 0pipeline: falsealiases: CommonName, DistinguishedName, DN, DnsHostName, Name, SamAccountName
Gets or sets computer identity (sAMAccountName, dNSHostName, DN, 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.
IncludeTrustedDomains SwitchParameter optionalposition: namedpipeline: false
Includes trusted domains when using forest-based scopes.
Property string[] optionalposition: namedpipeline: false
Gets or sets optional additional LDAP attributes to return 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.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 + First

Parameters

Domain string[] optionalposition: namedpipeline: falsealiases: DomainName
Gets or sets domain DNS names. In list mode defaults to current domain.
Filter ComputerFilter[] optionalposition: namedpipeline: falsevalues: 13
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 optionalposition: namedpipeline: false
Limits the number of returned rows after -Skip in list mode.
IncludeBitLocker SwitchParameter optionalposition: namedpipeline: false
Include BitLocker recovery summary in list mode.
IncludeTrustedDomains SwitchParameter optionalposition: namedpipeline: false
Includes trusted domains when using forest-based scopes.
MinInactiveDays int optionalposition: namedpipeline: false
Minimum inactivity (days) in list mode.
MinPasswordAgeDays int optionalposition: namedpipeline: false
Minimum password age (days) in list mode.
PropertySet ComputerProperties optionalposition: namedpipeline: falsevalues: 2
Property set to retrieve in list mode (Basic by default). Possible values: Basic, Full
Possible values: Basic, Full
ResolveTrueLastLogon SwitchParameter optionalposition: namedpipeline: false
Resolve authoritative lastLogon across all DCs in list 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
Skip int optionalposition: namedpipeline: false
Skips the specified number of rows after deterministic ordering in list mode.
TrueLastLogonDop int optionalposition: namedpipeline: false
Parallelism for true last logon resolution in list mode (default 4).
View AdxComputersView optionalposition: namedpipeline: falsevalues: 12
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