-->

而拒绝访问寄存器提供商(wevtutil)(Access is denied while regis

2019-10-21 04:06发布

我正尝试使用wevtutil注册一个清单基于提供商,并得到了以下错误:

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

于是我运行wevtutil GP ExampleProvider并得到以下信息:

Failed to open metadata for publisher ExampleProvider. Access is denied

该用户帐户I'm与有工作Administrator privilage并在该组的一部分, Event Log ReadersPerformance Log Users ,和Performance Monitor Users

清单文件是一样在这个例子 。

有谁知道什么是错?

A面说明的是,我的项目文件夹已根据性质只读标志,当我试图改变它不抱怨。 然而,当我再次打开属性仍然只读..任何人都可以解释这种行为?

编辑我已经找到了问题的区域,它的通道。

在该示例中在清单创建的教程他们创建像一个信道:

<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>

当我删除此通道和在事件中使用我没有得到任何警告默认情况下,我无法访问事件写入到该通道或东西(应用程序)?

文章来源: Access is denied while register provider (wevtutil)