PermissionDenied: (PS_DnsServerPrimaryZone:root

Randy Bordeaux 6 Reputation points
2022-05-20T09:28:32.767+00:00

I am running into an issue when trying to use a service account that is NOT a domain admin to create dns forward lookup zones on a remote DC

I am getting the error below;

Invoke-Command -Session $session -ScriptBlock {

  • ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  • CategoryInfo : PermissionDenied: (PS_DnsServerPrimaryZone:root/Microsoft/...rverPrimaryZone) [Add-DnsSe
    rverPrimaryZone], CimException
  • FullyQualifiedErrorId : HRESULT 0x80041003,Add-DnsServerPrimaryZone
  • PSComputerName : <REDACTED>

I have not been able to find where I need to add permissions to allow this.

CIMv2 permissions have been added
DNS permissions have been added
enable-pssession has been configured properly
ports are open
firewall is open
password is good

any ideas?

Windows for business | Windows Client for IT Pros | Networking | Network connectivity and file sharing
Windows for business | Windows Server | User experience | PowerShell
0 comments No comments
{count} vote

1 answer

Sort by: Most helpful
  1. Primoz Ivancic 0 Reputation points
    2024-10-18T08:58:15.8866667+00:00

    Add also Dns permissions under Microsoft of this service account.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.