I’ve been asked to write a domain-wide GPO to do the following:
* Create a folder called “C:DNSLogs”.
* Share the folder “C:DNSLogs” as “DNSLogs”.
* Modify the DNS server Debug logging so that the log file path points to “C:dnslogsDNSLogs.log”.
* Restart DNS for the changes to take effect.
From what I can see, the easiest method to do this is to create a GPO which runs a PowerShell script on each domain controller to do the above. Is this the only solution?