Category Archives: PowerShell

Strange PowerShell behaviour when getting list content type’s ID

For some reasons when retrieving the ID of a content type at the list level in PowerShell, the ID of the parent content type (i.e. the one at the site level) is always returned. Below is my script: Running the … Continue reading

Posted in PowerShell, SharePoint, SharePoint 2013 | 1 Comment

Merge-SPLogFile does not return any record for correlation ID

Given a correlation ID,¬†Merge-SPLogFile is one of the best ways to track down a SharePoint error as this cmdlet searches for this ID across the ULS of all servers in the farm. You can even specify other filtering criteria, such … Continue reading

Posted in PowerShell, SharePoint 2010 | Leave a comment

‘WARNING: Template is not found and is not applied’ when using custom WebTemplate with PowerShell

WebTemplate is the new way of doing site definitions in SP2010 (see this for a good overview:¬† Where you need to refer to the custom WebTemplate, you’d use the ‘{FeatureID}#WebTemplateName’ syntax, e.g: {56C8E551-565B-482A-A038-CCC18A878607}#MyWebTemplate I however have found that this does … Continue reading

Posted in PowerShell, SharePoint 2010, WebTemplate | 4 Comments