如何在sharepoint里通过correlation id查找详细的错误信息

Sharepoint里我们经常遇到这样的错误信息:

clip_image001

我们能通过下面的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

clip_image002

命令详细介绍: http://technet.microsoft.com/en-us/library/ff607589.aspx

原文地址:https://www.cnblogs.com/fengwenit/p/3535122.html