I've implemented a WMI provider (Window service, Instance, Methods and Properties provider). It works fine on Win开发者_运维问答dows 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!
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).
精彩评论