rkellerm
rkellerm

Reputation: 5522

WMI Error in Windows Server 2008 (WMI Provider)

I've implemented a WMI provider (Window service, Instance, Methods and Properties provider). It works fine on Windows Server 2003, but when it run on Windows Server 2008 with non-local administrator user, I cannot query it.

The error I get is 0x8004101d - unexpected error.

When the service user is a local admin everything is OK.

What could it be???

Thanks!

Upvotes: 0

Views: 845

Answers (1)

rkellerm
rkellerm

Reputation: 5522

OK, the problem was that I didn't specify the HostingModel, so it defaulted to NetworkServiceHost. The one needed one is LocalSystemHostOrSelfHost (that is the default in prior to Vista OSs).

Upvotes: 0

Related Questions