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 – […]

Enumerating Email Enabled Lists via STSADM

Posted on 6 CommentsPosted in SharePoint 2007, STSADM Commands

I can’t really take much credit for this command – fellow MVP Todd Klindt had a custom console application that he’d created to do the same thing but it was lacking some functionality and was not created as an stsadm extension.  He asked if I’d mind reworking it to allow different scopes and to make it an extension.  Fortunately I had some time so I took a look at his code to get this one […]

Updating the Default Content Access Account via STSADM

Posted on Leave a commentPosted in SharePoint 2007, STSADM Commands

This is one that I’ve been wanting to address for a while and I finally decided to sit down and just do it.  If you’ve had your environment in place long enough to have to change the passwords you know that you can change most of the passwords using the out of the box STSADM commands – many refer to this support article from Microsoft on how to do this: http://support.microsoft.com/kb/934838. Because there’s so many […]

Enabling Audience Targeting on a List

Posted on 3 CommentsPosted in SharePoint 2007, STSADM Commands

I thought I was done documenting my audience related STSADM commands and then I realized that I had completely forgotten one.  The first audience related command I had created was to enable audience targeting on a list – I called it gl-listaudiencetargeting.  I needed this because my current project had tons of lists that that needed audience targeting turned on.  Eventually these lists were added via a Feature but initially I did it via the […]

Setting the Audience Compilation Schedule via STSADM

Posted on 1 CommentPosted in SharePoint 2007, STSADM Commands

In an effort to wrap up my audience related STSADM commands I created a command that allows me to set the audience compilation schedule via STSADM.  I had to do some disassembling to figure out how to do this and it turned out that the code was virtually identical to what I had done for the gl-setuserprofileimportschedule command.  So it turned out that I was able to create this command by simply coping the code […]

Importing Profile Properties

Posted on 13 CommentsPosted in SharePoint 2007, STSADM Commands

The project that I’m currently on has a test environment in which many configurations were made to the user profile properties settings.  I just began the process of building out their production environment and was faced with a minor issue – how do I get all the settings that have been applied to the test environments profile properties migrated to the production environment in a reliable and repeatable way?  I took a look around and […]

Deleting an Audience via STSADM

Posted on Leave a commentPosted in SharePoint 2007, STSADM Commands

Using the commands I’ve created so far you can now create audiences, add rules, and display those rules all via STSADM.  If you’re like me and you do a lot of testing of this stuff before you push out the final version then you’ll want a way to also easily delete audiences that you’ve created.  Of course you could easily do this via the browser but what if you’ve added complex rules to your audience […]

Displaying Audience Rules via STSADM

Posted on Leave a commentPosted in SharePoint 2007, STSADM Commands

Okay, so you’ve created your audience and used my gl-addaudiencerule command to add some complex rules to the audience.  Three months later you’ve forgotten what those rules are and need to see them again – unfortunately you can’t do that via the browser, so what do you do?  Simple, you run gl-enumaudiencerules, another command I’ve created to help manage audiences via STSADM. This command is really simple so I’ll be brief – I simply loop […]

Setting List Content Types using STSADM

Posted on 10 CommentsPosted in SharePoint 2007, STSADM Commands

Sometimes when I’m working on a new Feature I find it easier to take certain snippets that I need to test and pull them out into custom STSADM commands.  This enables me to quickly and easily test the core code and without having to go through all the deployment steps.  It was for this purpose that I originally created this new command, gl-setlistcontenttypes.  I did find later that the command ended up being real useful […]

Assigning Rules to Audiences via STSADM

Posted on 1 CommentPosted in SharePoint 2007, STSADM Commands

If you read my last post, Creating Audiences via STSADM, then you know that I’ve been working on a project which requires me to be able to script out the creation of audiences via STSADM.  My last post covered the creation of the audience itself, but an audience with no rules isn’t all that useful, so for this post I’ll be covering my next custom command, gl-addaudiencerule, which enables you to add complex rules to […]