Add-PSSnapin Microsoft.SharePoint.PowerShell

I have seen quite a few articles mentioning Add-PSSnapin Microsoft.SharePoint.PowerShell lately. But what is the best way to load this snapin? Load the SharePoint PowerShell with add-pssnapin Quite a lot … Read More

SharePoint 2013 – GetListByName vs SPWeb.GetList vs SPListCollection.GetList vs SPListCollection.TryGetList

Getting a list with CSOM In my PowerShell script I’m doing the following: $list =  $web.Lists[“Mylist”] This generates the following Unexpected error in my SharePoint logs: 8ca3ea94-3288-49cd-99fd-1b6eab6cb52d Stack trace: at … Read More

Critical, Unexpected, Warnings and Monitorable errors in the SharePoint 2013 ULS logs

Recently I wrote a PowerShell script to collect all Critical, Unexpected and Monitorable messages in the ULS logs. SharePoint ULS logs With this script I’m creating an item in a … Read More

%d bloggers like this: