PowerShell TidBits: How to get newest event log entries from all SharePoint servers
Why?
While debugging a crash on a customer SharePoint farm, we had to do constant checks on all SharePoint servers for latest entries in the βSystemβ eventlog. So wrote this PowerShell one-liner, using Get-EventLog, to help him outβ¦
How?
Get-SPServer | Where-Object{$_.Role -ne "Invalid" } | %{ Write-Host "++++++++++++++++++ComputerName: $($_.Name.Split('.')[0])+++++++++++++++++++++++";β¦
View On WordPress

















