Skip to content

A small extension to Powershell Cmd-Let Get-WinEvent.

Notifications You must be signed in to change notification settings

Mihaly7/Get-WinEventEXT

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 

Repository files navigation

Get-WinEventEXT

Original idea came from https://github.com/jopalhei. A small extension to Powershell Cmd-Let Get-WinEvent. That short script helps to read events easily from command line, with setting time windows and eventIDs.

Example usage:

Get-WinEventEXT -Path D:\Logs\ -Eventlogname system -Date 09/25/2021 -Time 21:00:00 -Duration 00:10:00 -FilterInformation 0 -Backwards 0 -Detailed 1

Parameters:

-Path : Folder where to search for events, search is recursive.

-Logname : log file's name accepts wildcards like clustering-operational

-Date : Day of start the search

-Time : Time of start

-Duration: time window of search single digit is hours or you can use HH:MM:SS format

-FilterInformation: Filters out informational events.

-Backwards : Search backwards from time of start

-Detailed : Show meassage details with format-list

-EventID : search for eventID(s), separate multiple IDs with ','

-ProviderName : Eventprovider's name, separate multiple providers with ','. Support wildcars (*)

-Message : Filter events by the given message. Example: "cluster" will list events only which have cluster in the message.

About

A small extension to Powershell Cmd-Let Get-WinEvent.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published