Powershell Log-file management

Get event logs (Get-EventLog)

> Get-EventLog -List
> Get-EventLog -LogName System -Newest 10
> Get-EventLog -LogName System -EntryType Error
> Get-EventLog -LogName System -Message *description*
-ListAll logs by entries
-LogName System -Newest 10Get newest from System log
-LogName System -EntryType ErrorGet errors from a System log
-LogName System -Message *description*All events that include a word