如何在sharepoint里通过correlation id查找详细的错误信息
Sharepoint里我们经常遇到这样的错误信息:
我们能通过下面的power shell 命令来查到详细的错误信息:
cls
$correlationid = read-host
$date = (Get-Date).AddHours(-1)
get-splogevent -StartTime $date | where-object {$_.Correlation -eq $correlationid.Trim() -and $_.Level -eq "Unexpected" } | select Area, Category, Level, EventID, Message | Format-List
命令详细介绍: http://technet.microsoft.com/en-us/library/ff607589.aspx