Quantcast
Channel: The Official Scripting Guys Forum! forum
Viewing all articles
Browse latest Browse all 15028

New-WinEvent - Creating a provider - PowerShell

$
0
0

Hello,

I'm trying to use new-winevent with a custom event provider.  I managed to use New-eventlog to generate a new log as well as a new source but now when I try and create a new event it tells me that, " Event cannot be written because there are no events defined with id 10909 for the provider."

So my question is this:

1. Does anyone know how to go about creating a proper event provider and populating it with Event IDs?

2. Is this a good way to go about trying to build custom events for Powershell in the event log?

Ultimately we're trying to set up our environment so that when production scripts fail they generate windows events that we will track with SCOM.  I'm just not sure if my direction is good or if I should look at another avenue for this.


Hope that helps! Jason


Viewing all articles
Browse latest Browse all 15028

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>