Get-DnsServerResourceRecord - "Invalid namespace"

I’m using Microsoft’s DnsServer module on my local workstation and the Get-DnsServerResourceRecord cmdlet works just fine. However, when I try the same on a server logged in under another user account I’m continually getting an error “Invalid Namespace”. It seems that’s probably doing something with WMI under the hood but it’s a binary module and I can’t see the code.

Anyone have any ideas on where to start?

It’s a CIM cmdlet, so very likely only works on Windows Server 2012 or later.

Looks like it uses WMI classes in the root/Microsoft/Windows/DNS namespace (PS_DnsServerResourceRecord, etc).

Ah! Yes, you are correct. Thanks, Dave!