J
J
Jordan_H2020-12-03 14:13:37
PowerShell
Jordan_H, 2020-12-03 14:13:37

How do I set the "AllowedDcForNsRecordsAutoCreation" attribute of the "Set-DnsServerPrimaryZone" cmdlet to $null?

Attempt to reset "AllowedDcForNsRecordsAutoCreation" attribute, command:
Set-DnsServerPrimaryZone "zone_name" -ComputerName "dns_server_name" -AllowedDcForNsRecordsAutoCreation ""
Returns error:
Set-DnsServerPrimaryZone : The server threw an exception.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey Dmitriev, 2020-12-03
@SignFinder

Did you read the parameter description?
https://docs.microsoft.com/en-us/powershell/module...
It passes a list of IPs to add to the NS zone entry.
And it's not required - just don't add it. It has a default value and so None

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question