Get-EventLog - Powershell 2.0 CmdLet
Microsoft Windows PowerShell is a command-line shell and scripting tool based on the Microsoft .NET Framework. It is designed for system administrators, engineers and developers to control and automate the administration of Windows and applications.
More than hundred command-line tools (so called "cmdlets") can be used to perform system administration tasks and Windows Management Instrumentation (WMI). These cmdlets are easy to use, with standard naming conventions and common parameters, and standard tools for piping, sorting, filtering, and formatting data and objects.
Short description Gets the events in an event log, or a list of the event logs, on the local or remote computers. Syntax Get-EventLog [-AsString] [-ComputerName <string>] [-List] [<CommonParameters>] Get-EventLog [-LogName] <string> [[-InstanceId] <Int64>] [-After <DateTime>] [-AsBaseObject] [-Before <DateTime>] [-ComputerName <string>] [-EntryType <string>] [-Index <Int32>] [-Message <string>] [-Newest <int>] [-Source <string>] [-UserName <string>] [<CommonParameters>] Description The Get-EventLog cmdlet gets events and event logs on the local and remote computers. Use the parameters of Get-EventLog to search for events by using their property values. Get-EventLog gets only the events that match all of the specified property values. The cmdlets that contain the EventLog noun (the EventLog cmdlets) work only on classic event logs. To get events fr om logs that use the Windows Event Log technology in Windows Vista and later versions of Windows, use Get-WinEvent.