How can I create a custom event in Windows OS?
I must be able to create a custom event data containing various parameters.
It might be either using command prompt or PowerShell.
How can I create a custom event in Windows OS?
I must be able to create a custom event data containing various parameters.
It might be either using command prompt or PowerShell.
Copyright © 2021 Jogjafile Inc.
You can always record entries into
Application
event log using call to one of overloads of method EventLog.WriteEvent. For example this one:Every .Net Class can be easily automated using Windows PowerShell.
Also there are exist special command for PowerShell - Write-EventLog:
Mayby you will found it more useful.
In Python there are exist special logger class NTEventLogHandler which write event to Windows Event Log.