My goal is to get the amount of EventLog Entries of a specific Log with a small powershell script. The amount should be converted to a variable.
Now I am at a point that I really dont know how to accomplish this. Can you help? Maybe there is an Option in Get-WinEvent?
Thanks in advance for any help.
Sure, the
-ListLogparameter will help you get a count. Here are some examplesA specific log (eg: Application)
All logs
All non-empty logs
References
Get-WinEvent