TestimoX

API Reference

Command

Get-ADXDnsRecordInventory

Namespace ADPlayground.PowerShell
Inputs
System.String
Outputs
ADPlayground.Dns.DnsRecordInventoryItem ADPlayground.Dns.DnsRecordInventorySnapshot

Retrieves typed Microsoft DNS record inventory from a domain or DNS server.

Examples

Authored help example

Example 1: Collect DNS record inventory for a domain


Get-ADXDnsRecordInventory -Domain 'contoso.com'
        

Example 2: Emit individual DNS records from a selected DNS server


Get-ADXDnsRecordInventory -Domain 'contoso.com' -DnsServer 'dc01.contoso.com' -AsRecord | Format-Table ZoneName, OwnerName, Kind, Value
        

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-ADXDnsRecordInventory [-Domain <string>] [-AsRecord] [-DnsServer <string>] [-SkipIpv6] [<CommonParameters>]
#

Parameters

Domain string optionalposition: 0pipeline: true (ByPropertyName)
Domain name associated with the DNS inventory request.
AsRecord SwitchParameter optionalposition: namedpipeline: false
Emit each collected DNS record instead of the inventory snapshot.
DnsServer string optionalposition: namedpipeline: true (ByPropertyName)
DNS server to query. When omitted, ADPlayground resolves a domain controller from the domain.
SkipIpv6 SwitchParameter optionalposition: namedpipeline: false
Skip IPv6 AAAA record collection.

Outputs

ADPlayground.Dns.DnsRecordInventoryItem, ADPlayground.Dns.DnsRecordInventorySnapshot