Contact Info

Crumbtrail

ActiveXperts.com » Administration » Powershell » Powershell 2.0 » Get-Event

Get-Event - Powershell 2.0 CmdLet

ActiveXperts Network Monitor ships with integrated Powershell scripts to monitor complex network. The scripts run out of the box
Download the ActiveXperts Network Monitor FREE version now »

Get-Event

Short description
Gets the events in the event queue.

Syntax


Description
The Get-Event cmdlet gets events in the Windows PowerShell event queue for the current session. You can get all eve
nts or use the EventIdentifier or SourceIdentifier parameters to specify the events.

When an event occurs, it is added to the event queue. The event queue includes events for which you have registered
, events created by using the New-Event cmdlet, and the event that is raised when Windows PowerShell exits. You can
 use Get-Event or Wait-Event to get the events.

This cmdlet does not get events from the Event Viewer logs. To get those events, use Get-WinEvent or Get-EventLog.