STSADM

Create Content Database

Create Content Database

It’s pretty easy to create a content database via the browser and you can create a new content database easily enough when creating a new site collection via stsadm, createsiteinnewdb, or directly using addcontentdb.

Continue Reading
Set the Welcome Page for a Web

Set the Welcome Page for a Web

When I did the gradual upgrade I found that several sites had the welcome page set to UpgLandingPgRedir.aspx when it should have been set to default.aspx. I didn’t have time to figure out why it was doing this but the fix was easy enough – I just had to change the welcome page back.

Continue Reading
Retarget Grouped Listings Web Parts

Retarget Grouped Listings Web Parts

When we did our test upgrade I found that “almost” every single page that had a Grouped Listings Web Part (which is basically just a content query web part) had its source changed from showing items from the “Listings” list to instead show all items from the site.

Continue Reading
List All Welcome Pages

List All Welcome Pages

After I had created the gl-sitewelcomepage command I needed a quick way to find all the pages that were pointing to the wrong place. To do this I hacked out this command which essentially just loops through a farm, web application, site collection or web and displays what the current welcome page is set to for each web.

Continue Reading
Apply Theme

Apply Theme

This command came about as a result of wanting to be able to reset the theme of a web site when it was upgraded. I had created this code as part of the upgrade2 command and figured that I might as well pull it out into its own command so that it could be used independently of the upgrade command.

Continue Reading
Move a Site Collection

Move a Site Collection

As part of the upgrade I was working on we wanted to move site collections from the upgraded location to a new location on a different web application. This can be done really easily using the backup and restore built-in commands in conjunction with the deletesite command.

Continue Reading
Namespace and Filename Changes (plus 5 new commands)

Namespace and Filename Changes (plus 5 new commands)

I’ve just pushed out a new build which renames all the files and namespaces. If you download this latest build you will have to uninstall the previous build if previously installed.

Continue Reading
Save List Items and Files to Disk

Save List Items and Files to Disk

I’ve seen numerous examples of people needing to save all the files from a document library or custom list (containing attachments) to disk. I didn’t necessarily need the ability myself for the upgrade we are doing but I did need a quick way to generate lots of different samples to make sure that my gl-addlistitem command was working correctly.

Continue Reading
Add List Item

Add List Item

I’m about at my wits end with the deployment API. I had a fairly simple requirement of adding a custom list item into the site directory so that the top tasks would have some additional items post upgrade.

Continue Reading
Set Usage Analysis

Set Usage Analysis

As part of our upgrade I wanted to make sure that usage analysis was fully enabled and configured so that site collection administrators could track how their sites were being used.

Continue Reading