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…
PowerShell script to show the access request email address for all sites
I have written this script to determine whether or not Access Requests are enabled for each site within a given Site Collection, and if so display the email address specified. The colour coded output makes it easy to see which…
Configure ULS logs to rollover after 60 minutes
By default SharePoint rolls over it’s Unified Logging Service (ULS) logs every 30 minutes. I would like to reduce the number of log files so will increase the rollover to 60 minutes by using the Set-SPDiagnosticConfig PowerShell command: Set-SPDiagnosticConfig –LogCutInterval…
Changing the Central Administration TCP port
During installation the SharePoint Central Administration site is assigned a randomly generated TCP port. I have decided to change mine to something memorable as I can never remember it and have to log on to the server to check. The…