Access is denied while register provider (wevtutil)

南笙酒味 提交于 2019-12-13 01:23:52

问题


I´m trying to register a manifest based provider using wevtutil and get the following error:

**** Warning: Publisher ExampleProvider resources are not accessible.

So I run wevtutil gp ExampleProvider and get the following message:

Failed to open metadata for publisher ExampleProvider. Access is denied

The user account I´m working with have Administrator privilage and is part of the groups Event Log Readers, Performance Log Users, and Performance Monitor Users.

The manifest file is the same as in this example.

Does anyone know whats wrong?

A side note is that my project folder has read-only flag under properties and when I try to change it does not complain. However, when I open up the properties again it remains read-only.. Can anyone explain that behaviour?

EDIT I have located the problem area and it is the channel.

In the example manifest created in the tutorial they create a channel like:

<channels>
    <channel name="MyChannel" chid="MyChannel" symbol="MyChannel" type="Debug" enabled="true" message="$(string.ExampleProvider.channel.MyChannel.message)">
    </channel>
    <importChannel name="Application" chid="appchnl">
    </importChannel>
</channels>

And when I remove this channel and use default in the event I get no warnings, do I not have access to write events to that channel or something (Application)?

来源:https://stackoverflow.com/questions/26525941/access-is-denied-while-register-provider-wevtutil

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!