PowerShell

Get-WinEvent

SafeRead event logs

Get-WinEvent -LogName System -MaxEvents 50

Reads System/Application event logs to chase failures.

Examples

  • Get-WinEvent -LogName System -MaxEvents 50Last 50 system events

Syntax

Get-WinEvent -LogName <System|Application> -MaxEvents n

Before you run it

Read-only.

Related commands

The same reference, with no signal at all

Every command and flow from this site, held on your device and searchable with no connection. Free to install, no ads.

Get it free on the App Store