You are not logged in.
Pages: 1
While I'm rather new to powerShell v3, there's some things I can do with it, however, one thing that has eluded me is how to pull all hosts listed in our DNS Manager (Server 2008 R2). I don't need to set or remove anything just have it query the listing into a text file. Surprisingly I'm not finding a way to do this. Has anybody ever done this before? Can you tell me how you did it, please?
Offline
Doesn't appear to be much activity in this forum.
Offline
better try in Stackoverflow...
Offline
You can do: Get-DNSServerResourceRecord -Server DNS_SERVER -Zone ZONE_NAME -RRType A
This will get all of the A records from the specified zone.
Blog --> adamtheautomator.com
Offline
I don't need to set or remove anything just have it query the listing into a text file. Surprisingly I'm not finding a way to do this. Has anybody ever done this before? Can you tell me how you did it, please?
Mohsin
Offline
To use the DNS cmdlets you first need to
Import-Module DnsServer
To list the cmdlets available:
Get-Command –Module DnsServer
As with any 'Get-' cmdlet, you can assign it to a variable and redirect out to a file.
Offline
Pages: 1