API Reference
Command
Get-ADXDnsRecordInventory
Retrieves typed Microsoft DNS record inventory from a domain or DNS server.
Examples
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
- Domain name associated with the DNS inventory request.
- AsRecord SwitchParameter
- Emit each collected DNS record instead of the inventory snapshot.
- DnsServer string
- DNS server to query. When omitted, ADPlayground resolves a domain controller from the domain.
- SkipIpv6 SwitchParameter
- Skip IPv6 AAAA record collection.
Outputs
ADPlayground.Dns.DnsRecordInventoryItem, ADPlayground.Dns.DnsRecordInventorySnapshot