Automating deployment of complex search service application topology

Recently my client expressed a desire to automate deployment of search service application with not so ordinary topology 😉 The script needed to be flexible and reusable for other environments (DR, Test). So here is the PowerShell script which uses input from XML configuration file to implement any desired search service topology.   It also includes process…

1

Flush the SharePoint Configuration Cache

From time to time you may need to flush the SharePoint configuration cache on servers within your farm, my colleague Joe Rodgers blogged about this many moons ago – http://blogs.msdn.com/b/josrod/archive/2007/12/12/clear-the-sharepoint-configuration-cache-for-timer-job-and-psconfig-errors.aspx. If you run into a scenario that you need to flush the configuration cache on all servers within a farm this can become a very…

0

SharePoint Update Deployment - Automating Parallel Content Database Upgrades

I recently helped a customer to deploy a Cumulative Update to their SharePoint environment, due to the amount of content hosted within the farm the customer uses the approach of detaching all content databases, upgrading the farm and then re-attaching and upgrading all content databases afterwards, this potentially reduces the amount of downtime as content…

4

Backup/Restore-SPSite and the Missing Term Set!

One of my customers recently wanted to move a Site Collection into a new Content Database, however instead of using Move-SPSite to do this they decided to use Backup/Restore-SPSite and here is where the fun began!  One of the key differences between using Move-SPSite and Restore-SPSite is that Restore-SPSite will assign a new GUID to the Site…

5

Export Members of a SharePoint Audience

Here is a quick PowerShell script that I put together for a customer to enable them to export the usernames and e-mail addresses of all users that are members of a specific SharePoint Audience to a CSV file. Please update the three highlighted values, $Output is the location to write the CSV file to, replace…

0

SharePoint: Planning for the Future - PowerShell Scripts

I recently presented a session on planning for the future with SharePoint, as promised to the attendees, below are two of the scripts that I used in my demonstrations to audit Content databases and Site Collections. Content Database InventoryThis script outputs details of all Content Databases within a SharePoint farm to a CSV file, this includes…

2

Create a SharePoint Application Pool using PowerShell

As you may know there isn't an out of the box PowerShell cmdlet available in SharePoint 2010 or 2013 that can be used to create an Application Pool for a Web Application, New-SPServiceApplicationPool (http://technet.microsoft.com/en-us/library/ff607595(v=office.15).aspx) is available however this can only be used to create an Application Pool for a Service Application. A customer recently asked…


PowerShell Snippets

PowerShell Snippets As Premier Field Engineers, we often find that our customers need assistance creating PowerShell scripts that can help automate administrative processes; or retrieve information from their various SharePoint farms. Whilst each of our customers are different and have unique environments; many scripts have requirements that are similar, if not the same regardless of…

0

Getting Started with Office 365 and the Client Side Object Model - CSOM

SharePoint 2013 included some huge improvements to the Client Side Object Model, as more and more of the customers that I work with are moving to Office 365 I need to start thinking about updating the various scripts that I have to use CSOM. This is critical as my collection of scripts have been exclusively…

3