Get-WinEvent
Using Get-WinEvent
Listing Available Logs
Get-WinEvent -ListLog * | Select-Object LogName, RecordCount, IsClassicLog, IsEnabled, LogMode, LogType | Format-Table -AutoSizeLogName
RecordCount
IsClassicLog
IsEnabled
LogMode
LogType
Listing Event Providers
Get-WinEvent -ListProvider * | Format-Table -AutoSizeRetrieving Specific Events
Get-WinEvent -LogName 'System' -MaxEvents 50 | Select-Object TimeCreated, ID, ProviderName, LevelDisplayName, Message | Format-Table -AutoSizeFiltering by Date Range
Filtering by Event ID and Properties
Filtering with XML Content
Detecting Specific Network Connections
Viewing All Properties of a Sysmon Event
Searching for Encoded Commands
Last updated