Debugging SharePoint 2010 using PowerShell

Are you lazy like me, and hate walking through thousands of lines of error messages logged in by ULS?

Well, now with PowerShell, life is about to get so much easier. Welcome to Get-SPLogEvent.

How to use:

Get-SPLogEvent | ?{$_.Correlation –eq “Your-correlation-id-GUID”} | ft Timestamp, Category, Message –Autosize

What you get is the category and message related to the specified correlation id.

This saved me quite a few hours of debugging on one of my last projects, otherwise it wouldn’t have caught my attention like so.

Enjoy Smile

Advertisement

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

Create a website or blog at WordPress.com

Up ↑

%d bloggers like this: