PowerShell script to update all Site Collection Owners

Requirement Update the site collection owners for all sites in your SharePoint farm. You normally wouldn’t do this too often, but this is helpful when you are doing things like migrations from old SharePoint installations. Having a valid account with a working e-mail address is important especially when you use site collection quotas and warning […]

Continue Reading...

The local farm is not accessible. Cmdlets with FeatureDependencyId are not registered.

Problem You install .NET Framework 4.0 on your SharePoint 2010 WFE and SharePoint 2010 Management Shell stops working. When you run it, you get the following message: The local farm is not accessible. Cmdlets with FeatureDependencyId are not registered. Running any SharePoint cmdlet yields the following result: Get-SPDatabase : Microsoft SharePoint is not supported with […]

Continue Reading...

Removing references to old / unused databases in SharePoint 2010

Problem Over time, as you create / remove service applications, there is a tendency for SharePoint to retain a list of databases that are no longer in use but still referenced in the SharePoint Config database. If you try to remove the database on the SQL server without first removing it from SharePoint, you will […]

Continue Reading...

Unable to delete a corrupted Search Service Application

Problem I recently had to recreate a corrupted search service application on my farm. I tried deleting the service application from Central Administration but the ‘Please wait’ dialog just kept showing and nothing happened. I then tried deleting it using PowerShell using the Remove-SPServiceApplication command. After pressing enter, I waited for about 15 minutes and […]

Continue Reading...