gl-fixpagecontact Deprecated!!!

Posted on Leave a commentPosted in SharePoint 2007, STSADM Commands

Woohoo! – I finally get to deprecate one of my commands – after creating and publishing 135 commands I discovered today that the August Cumulative Update fixes the issue that my gl-fixpagecontact command sought to address.  If you look back at the post for that command you can see that there was a bug with the product which resulted in a user not found exception being thrown when looking at the settings of a publishing […]

Create a Publishing Page via STSADM

Posted on 15 CommentsPosted in SharePoint 2007, STSADM Commands

I’m working on a project which is going to require the creation of about a hundred publishing pages which were going to have to be created by hand.  I really didn’t want to have to sit there going through the UI to create all those pages so I threw together a new STSADM command that I could use via a script to create the pages: gl-createpublishingpage. Creating publishing pages via code is pretty simple – […]

Fixing Invalid Page Contacts

Posted on 12 CommentsPosted in SharePoint 2007, STSADM Commands

Update 12/29/2008:  This command has been deprecated – the issues described below have been resolved with the August 2008 Cumulative Update (http://support.microsoft.com/kb/956056 and http://support.microsoft.com/kb/956057). I’ve been doing a lot of migration work these days and if you’ve ever had to migrate content from one farm (or site collection) to another you know that all sorts of things can go wrong (many of which have been documented in one form or another on this blog).  One […]

Fun with Variations

Posted on 46 CommentsPosted in Article, SharePoint 2007

I’ve recently done a lot of work with my current client to get SharePoint variations working and as a result I’ve learned that you need to be very patient and persistent and keep a full bottle of Excedrin nearby.  Though this post is not directly related to stsadm extensions the results of my efforts on this project produced a couple of new commands which I’ll touch upon here and detail in a follow-up post.  Before […]

Set the Welcome Page for a Web

Posted on 4 CommentsPosted in SharePoint 2007, STSADM Commands

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. To do this I created a new command: gl-sitewelcomepage. The code to set this is really simple – basically just get […]

List All Welcome Pages

Posted on Leave a commentPosted in SharePoint 2007, STSADM Commands

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. The command is called gl-enumwelcomepages. Like the gl-sitewelcomepage command this command is really simple – most of […]

Publish Items

Posted on 26 CommentsPosted in SharePoint 2007, STSADM Commands

I wasn’t planning on creating this command but then I ran my gl-replacefieldvalues command and forgot to pass the "-publish" switch in so now I was stuck with all these list items that needed to be published and/or approved. When this happened I thought, no problem – Andrew Connell has a PublishAllItems command so I’ll just download his stuff and use that rather than create my own. Unfortunately however, Andrew’s command didn’t take all scenarios […]

Enumerate Page Web Parts

Posted on 7 CommentsPosted in SharePoint 2007, STSADM Commands

As part of the upgrade I needed to be able to fix some web parts that did not migrate correctly (either during the upgrade itself or as a result of moving a web). Before I started messing around with the web parts though I wanted to be able to see what I was dealing with. So I decided to create this simple command called gl-enumpagewebparts that would enable me to list out in XML all […]

Re-Ghosting Pages

Posted on 31 CommentsPosted in SharePoint 2007, STSADM Commands

After running a test upgrade I discovered that one page particular was showing up as un-ghosted (or customized) despite my setting the option to reset all pages to the site definition when I ran the upgrade. I attempted to use the browser to reset the page (in this case http://intranet/sitedirectory/lists/sites/summary.aspx) but that had no affect. I decided that I needed to get more information about how the un-ghosting process works. The first thing I needed […]