New-SPLogFile

SharePoint, Tools

One of the common scenarios when troubleshooting a SharePoint solution is to look in the ULS logs for the lines that are marked with a specfic corellation identifier. However, log files can become quite large over time and the isolation of the specific sequence becomes time consuming and error prone.

The New-SPLogFile SharePoint commandlet will force the creation of a new log file and can come in handy. Using it before starting troubleshooting and then again after will create a small log file containing just the information needed.

What do you think?