I have set something up to create and delete DNS records. I have a specific user doing both actions. The user in question has DNS Admin rights in Active Directory. I am performing all actions via powershell, the creation of DNS records A, PTR works exactly as expected with this user. When the user goes to remove the records the PTR record is delete correctly; however, the “A” record is not deleted and the error generated is:
CategoryInfo : PermissionDenied: (GoodDeal3:root/Microsoft/…rResourceRecord) [Remove-DnsServerResourceRecord], CimException
FullyQualifiedErrorId : WIN32 5,Remove-DnsServerResourceRecord
If the user tries to delete the record via the DNS GUI (RSAT tool) there is no issue.
So my question is has anyone else ran into this issue, and if so how did you resolve it.