Scripting. Powershell, VMware, Windows, Active Directory & Exchange. All that kind of stuff…..
RSS icon Email icon Home icon
  • PowerShell 2.0: One Cmdlet at a Time #68 Show-EventLog

    Posted on February 26th, 2010 Jonathan Medd No comments

    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.

    Show-EventLog

    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

    1000 things 1% better!

    Leave a reply