如何在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

posted @ 2014-01-27 17:56  疯吻IT  阅读(465)  评论(0编辑  收藏  举报