On Fri, Aug 14, 2015 at 5:10 PM, Aakash Shah <[email protected]> wrote:
> Silly question, but did you run this as an admin since the system32
folder doesn’t  allow non-admins to write to it by default?

Yes.

Perhaps as a test write to an open area in your profile perhaps.
>
> Also, do the folders dns and backup exist?  If not, create them first and
then re-try running it.

Yes to both. They exist on the DNS server, and on the machine I am running
the script from.

It appears that the Export-DnsServerZone doesn't like a variable, even as
the name of the zone. If you use the literal value, it all Just Works.


> export-dnsserverzone -Computername <my-server> -Name
xx.xx.10.in-addr.arpa -FileName "Zone-reverse.TXT"

Works without issue. Replace the zonename with a variable? Fail. Replace
the filename with a variable? Fail.


================================================
Did you know you can also post and find answers on PowerShell in the forums?
http://www.myitforum.com/forums/default.asp?catApp=1

Reply via email to