PowerShell Logo Small

Show-EventLog



This is the built-in help made by Microsoft for the command 'Show-EventLog', in PowerShell version 2 - as retrieved from Windows version 'Microsoft® Windows Vista™ Ultimate ' PowerShell help files on 2016-06-23.

For PowerShell version 3 and up, where you have Update-Help, this command was run just before creating the web pages from the help files.

SYNOPSIS

Displays the event logs of the local or a remote computer in Event Viewer.

SYNTAX


Show-EventLog [[-ComputerName] <string>] [<CommonParameters>]



Search powershellhelp.space

DESCRIPTION


The Show-EventLog cmdlet opens Event Viewer on the local computer and displays in it all of the classic event logs on the local computer or a rem
ote computer.

To open Event Viewer on Windows Vista and later versions of Windows, the current user must be a member of the Administrators group on the local c
omputer.

The cmdlets that contain the EventLog noun (the EventLog cmdlets) work only on classic event logs. To get events from logs that use the Windows E
vent Log technology in Windows Vista and later versions of Windows, use Get-WinEvent.



<

RELATED LINKS

Online version: http://go.microsoft.com/fwlink/?LinkID=135257
Clear-EventLog
Get-EventLog
Limit-EventLog
New-EventLog
Remove-EventLog
Write-EventLog
Get-WinEvent

REMARKS

<

Examples


-------------------------- EXAMPLE 1 --------------------------

C:\PS>show-eventlog



Description
-----------
This command opens Event Viewer and displays in it the classic event logs on the local computer.








-------------------------- EXAMPLE 2 --------------------------

C:\PS>show-eventlog -computername Server01



Description
-----------
This command opens Event Viewer and displays in it the classic event logs on the Server01 computer.