PowerShell has a
terrific cmdlet
in Get-Eventlog
that makes it
easy to find
information in a
system's event
log. Since
different
systems may have
different event
logs, one of the
first commands
you'll want to
use is this.
To get you started, here are five examples to type at the PS prompt type:
Say you just want to decide after executing a command that which log file you want to pull the logs from and report back the last 5 logs for that specific log name.
|
|||
