What is the best way to uninstall / delete previously installed event sources without using manifest?
For example. If I have something like:
[EventSource(Name = "Corporation-Module-X")]
public sealed class XEventSource : EventSource
{
//...
}
For installing event source I am using wevtutil {im | install-manifest}
For uninstall is easy if I have the manifest. But could I uninstall event source without having manifest file?
I will try to clarify how I am using event sources and why I would like to remove it.
After installing event source using wevtutil, event source is visible as event trace provider. So I can create new Data Collector Set in Performance Monitor where I am adding my event source (together with some performance counters). It looks like this:
What could happen is that event source get renamed or deleted. E.g. after rename and install using wevtutil.
[EventSource(Name = "Corporation-Module-Y")]
public sealed class XEventSource : EventSource
{
//...
}
Old one is still there in event trace providers:
What I would like is to query all installed event providers that start with Corporation* and to delete them before installing new one.
Thanks!