Created
October 18, 2023 21:05
-
-
Save seyerj/2ef1529bf01adc0641f79454e02e467f to your computer and use it in GitHub Desktop.
Get all AD DNS Entries sorted and dump to a CSV in c:\temp\
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Get-DnsServerResourceRecord -computername DC1 -ZoneName zone.domain.com | Select-Object Hostname,TimeStamp,RecordType,@{Name="IPv4Address";Expression={ [version]$_.RecordData.IPv4Address.IPAddressToString }} | Sort-Object IPv4Address | export-csv -path c:\temp\dns1sort.csv |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment