I want to use DNS Policies (ZoneScope), and this requires that I use Powershell Cmdlets to manage DNS entries, as it can't be done via the DNS MMC.
Below is an example of a multiline TXT record I want to create ... I can just paste this in when using the DNS MMC to create a multiline TXT record dnsmg.png (but that is the default and cannot be targeted to a specific ZoneScope). DNSCMD.EXE does support multiline TXT records, but it does not support ZoneScopes.
When I try to add the record (here without ZoneScope for simplicity)
Add-DnsServerResourceRecord -DescriptiveText "$txtrecords" -Name test4._tcp._ipps -Txt -ZoneName $domain -TimeToLive 0:1:0:0 I get an error (adsrr.png), which appears to be because the $txtrecords data is too big (when I shorten $txtrecords, it works).
How can I create a multi-line TXT record, in a ZoneScope, using Add-DnsServerResourceRecord?