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

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 )

Google photo

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

Twitter picture

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

Facebook photo

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

Connecting to %s

A WordPress.com Website.

Up ↑

%d bloggers like this: