PowerShell 2.0: One Cmdlet at a Time 68 Show-EventLog
Continuing the series looking at new cmdlets available in PowerShell 2.0. This time we look at the Show-EventLog cmdlet.
What can I do with it?
Open Event Viewer on a local or remote computer.
Example:
Open Event Viewer on the remote computer Test01.
Show-EventLog -ComputerName Test01
You will see that Event Viewer on the remote computer Test01 opens on the local machine.
How could I have done this in PowerShell 1.0?
You could have typed the executable Eventvwr to open Event Viewer on a local computer. To view it on the remote computer Test01 use:
eventvwr \\Test01