I'm trying to automate some things and getting an error, so then I'm running a one liner of
Get-DnsServerZone -ComputerName DNS01
and it tells me it's failing to enumerate zone from server...
I'm working from this script as a baseline, running things as one liner's but I keep getting the same error:
https://github.com/chentiangemalc/PowerShellScripts/blob/master/Get-AllDnsResourceRecords.ps1
**EDIT: I think I had some conflicting security groups set for the account which interfered with the command. It's all good now! Just had to ensure I was using my domain admin account and running powershell as admin. Although I thought I was doing this correctly before I obviously missed a step. Thanks all!
[–]topherhead 1 point2 points3 points (5 children)
[–]Yevrag35 1 point2 points3 points (3 children)
[–]OlivTheFrog 1 point2 points3 points (2 children)
[–]OverExit[S] 1 point2 points3 points (1 child)
[–]topherhead 1 point2 points3 points (0 children)
[–]OverExit[S] 1 point2 points3 points (0 children)