Enable Document Sets for a site collection
Document sets are used to organise groups of similar or related documents and can be useful for managing projects. This feature is disabled by default and can be enabled at the site collection using the Enable-SPFeature PowerShell command. Enable-SPFeature DocumentSet…
Access denied when running Enable-SPFeature DocumentSet
While trying to enable Document Sets on a SharePoint 2010 Server site collection it failed, stating Access Denied, when using the following command: Enable-SPFeature DocumentSet -URL http://intranet This was a very simple mistake – I was not logged in as…
PowerShell script to change locale for all sites
In response to a user post on Windows 2008 Forums I wrote this PowerShell script to change the locale (regional settings) for each site in a given site collection, as by default the locale is set to en-US (United States). …
Add a user to a SharePoint group using PowerShell
It’s fairly easy to add a user to a SharePoint group using the New-SPUser command. All you need to know is the URL of the site, the name of the user and the group they are to become a member of. …
Install SharePoint 2010 using AutoSPInstaller
I’m about to create a whole new installation of SharePoint 2010 so have decided to take AutoSPInstaller for a test drive. To prepare, I have: Built a new Windows 2008 R2 server and installed Active Directory, creating a new domain…
Application Server Role, Web Server (IIS) Role: configuration error
I’m installing SharePoint 2013 on Windows 2012 ‘offline’ – the server has no Internet access. Within minutes of starting the Preparation Tool to install the prerequisites it has failed to install the Web Server (IIS) Role. The process failed because…
SharePoint Foundation Search Event ID 70
I have been tasked with investigating an error that is being logged in the Application event log on a SharePoint server recently upgraded to SharePoint 2010 ServicePack 1. The error is logged as follows: The mount operation for the gatherer application…
Configuration Failed – Failed to create the configuration database
I’m installing SharePoint Foundation 2013 for the first time on a clean Windows 2012 server and, until now, it was going well. I have installed the prerequisites and SharePoint Foundation but the Configuration Wizard failed with this error: Failed to…
The local farm is not accessible (SharePoint 2010)
I have just opened the SharePoint Management Shell on a WFE server to be presented with a message I haven’t seen before: The local farm is not accessible. Cmdlets with FeatureDependencyId are not registered. When searching for a solution to…
Automating SharePoint backup using Windows PowerShell
I have just started using the following PowerShell script to backup an entire farm to disk every night, the script is called by the Windows Task Scheduler (running the task as the Farm Administrator account). Add-PSSnapin Microsoft.SharePoint.PowerShell Backup-SPFarm -Directory \\WW-Backup\SharePointBackup…