Skip to content

Function: Search WinEvent

Sébastien Maltais edited this page Jul 18, 2019 · 8 revisions

This function create a report of windows event of local or remote computer. The report format is in HTML,CSV or customobject.

Prerequesite | Powershell 5.1 and SMTP server (optionnal)


Search ALL Critical event on a local computer

Search-WinEvent -ALL -EventLevel Critical

Search ALL Error event on a local computer and create an HTML Report

Search-WinEvent -ALL -EventLevel error -html

Clone this wiki locally