Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

"interface not registered" in ActiveScript host on 2008R2 Core

13 views
Skip to first unread message

Brandon Langley

unread,
Apr 15, 2010, 8:01:01 PM4/15/10
to
In doing our testing against 2008R2, we discovered that scripts running
against WMI were failing on Server Core systems.

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?


0 new messages