Author Posts

October 24, 2014 at 8:39 am

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?

October 24, 2014 at 8:42 am

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

October 24, 2014 at 8:48 am

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

October 24, 2014 at 10:52 am

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