Skip to content

Glossary: Command Line for IT: Bash and PowerShell

Get-WinEvent

Also written: -MaxEvents, -LogName

A Windows-only cmdlet that reads the Event Log; the Security log needs administrator rights. It returns events with TimeCreated, Id and Message, newest first.

Where the book teaches it

Related terms

Event Logevent ID