PowerShell Script to Configure Search in SharePoint Server 2010

This morning I thought I’d share one more very useful PowerShell script for SharePoint Server 2010. When using Central Administration and/or the Farm Configuration Wizard to create and configure the Search Service Application, the resulting databases are named Search_Service_Application_DB_{GUID}, Search_Service_Application_CrawlDB_{GUID}, and Search_Service_Application_PropertyStoreDB_{GUID}. Personally, I’m not a fan of these lengthy database names. While the “_{GUID}”…

8

PowerShell Script to Configure the State Service in SharePoint Server 2010

In my first post today, I provided a number of scripts for deploying custom solutions and features in SharePoint Server 2010. However, those certainly weren’t all of the PowerShell scripts that I currently use when working with SharePoint 2010. Here’s another one that I deliberately excluded from the previous post. Note that in any “real…

1

Deployment Scripts for SharePoint Server 2010

A couple of years ago, I shared the scripts I created for deploying solutions based on Microsoft Office SharePoint Server (MOSS) 2007, or what I like to refer to as the “DR.DADA approach to SharePoint.” Well, I probably should have done this long before, but this week I finally got around to upgrading my MOSS…

2

Configuring Claims-Based Authentication in SharePoint Server 2010

I thought it would be helpful to share my step-by-step procedures for manually configuring claims-based authentication in SharePoint Server 2010 using an “ASP.NET database” and corresponding membership and role providers. Note that the following TechNet article provides some of the steps for configuring claims-based authentication in SharePoint Server 2010 (using the LDAP provider instead of…

1

Formatting PowerShell Script for My Blog

In a previous post, I described how I format code for my blog (i.e. by copying it from Visual Studio or SQL Server Management Studio and then running a simple console application to convert the RTF clipboard text to HTML). I recently started doing some significant work with PowerShell and therefore I wanted to have…

0

Using PowerShell to Delete a Site with Subsites in SharePoint Server 2010

When using the “DR.DADA” approach to SharePoint development, I often find myself deleting sites (in DEV and TEST environments) and subsequently re-activating features or running some migration utility to recreate the site hierarchy. In fact, a few years ago this became such a common task on the Agilent Technologies project that I wrote a simple…

2

Use PowerShell to "Reset to Site Definition" in SharePoint Server 2010

In one of my posts last month, I provided the following steps to “reghost” all of the pages in a Team Foundation Server (TFS) project site: Browse to the Site Settings page for the site (e.g. http://cyclops/sites/Demo/_layouts/settings.aspx). On the Site Settings page, in the Site Actions section, click Reset to site definition. On the Reset Page…

1

Upgrading TFS 2005/2008 Project Sites to TFS 2010, Part 3 - Quick Launch Navigation

Update (2010-05-20) I made some changes to correct a few issues and also to include the final version of the XML input file that I used to update my TFS project sites. In my previous post, I showed how you can use PowerShell to export the quick launch navigation from a SharePoint site to XML…

0

Upgrading TFS 2005/2008 Project Sites to TFS 2010, Part 4 - Project Work Items Web Part

In the part 1 of this series, I described how to enable the dashboard functionality in Team Foundation Server (TFS) 2010 on project sites upgraded from TFS 2005/2008 (i.e. sites originally created with the MSF Agile v4.x process templates). I noted that it wasn’t quite as simple as activating a feature on the SharePoint site…

5

Configuring Quick Launch Navigation in SharePoint Server 2010 Using PowerShell

Suppose that you need to update a few SharePoint team sites to add a couple of links to the quick launch navigation. Assuming the number of sites to be updated is relatively small, then it is reasonable to manually apply the configuration changes via the Site Settings page on each site. However, what if you…

0