Digging a little deeper, it appears we were able to create the object, but
when we attempt to invoke a method against that object we receive the
following error:
0x80040155 - Interface not Registered
Example (abbreviated):
Set objWMIService =
GetObject("winmgmts:{impersonationLevel=impersonate,(Debug,Restore)}!\\.\root\cimv2")
set colPrivileges = objWMIService.Security_.Privileges
In this particular case, the second line is where the above HRESULT is thrown.
This issue only appears to occur on a 2008 R2 Server Core system, the 2008
R2 Server systems that we have tried this on do not fail.
Also, if I attempt this same piece of script with the Windows Scripting
Host, the script succeeds.
Has anyone seen anything like this? Can anyone offer suggestions on how to
debug into this?