Using Windows Server 2012 R2 and Windows Server 2012 DNS console or PowerShell,
I need to export the list of DNS forward lookup zones and also the Conditional forwarders in my DNS Management console to .CSV so I can compare it between two DNS server in different AD domains.
Any help and suggestion would be greatly appreciated.
Get-DnsServerZone : The term 'Get-DnsServerZone' is not recognized as the name of a cmdlet, function, script file, or operable program.
Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:2 char:12
+ $Zones = @(Get-DnsServerZone -ComputerName $DNSServer)
+ ~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (Get-DnsServerZone:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
DNSServer module comes when the feature is enabled, make sure its enabled otherwise, as mentioned above you can make use of RSAT or you can use implicit remoting as well.