Changing the page layout of a search result page via Powershell in SharePoint 2010

This is a “quick hack” to change the layout of a search result page. When the Publishing-Feature is disabled you are not able to change the layout via the UI. If you add a new page via “Create page” chances are high that you get a layout you don’t want. Powershell comes to the rescue […]

Enable-SPFeature does not trigger the feature receiver

Today I encountered the same problem as stated in a blog post by Christopher Maish. When activating the feature via powershell the associated feature receiver was not called. Trying the suggested solution in the blog post drove me to the cause of this problem. When using stsadm I got an “access denied” error. I did […]

Using powershell to quickly debug SPSiteDataQuery

Writing CAML-Queries is still no fun. Even with SharePoint 2010… So you often need to test your queries before they actually work. In case you quickly want to test if your SPSiteDataQuery is correct you can use powershell to “debug” it. Just create an instance of the site-collection and target the root-web with your query-instance. […]