Latest Posts

View my most recent blog posts

Setting the Audience Compilation Schedule via STSADM

Setting the Audience Compilation Schedule via STSADM

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.

Continue Reading
Importing Profile Properties

Importing Profile Properties

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?

Continue Reading
Deleting an Audience via STSADM

Deleting an Audience via STSADM

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.

Continue Reading
Displaying Audience Rules via STSADM

Displaying Audience Rules via STSADM

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?

Continue Reading
Setting List Content Types using STSADM

Setting List Content Types using STSADM

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.

Continue Reading
Assigning Rules to Audiences via STSADM

Assigning Rules to Audiences via STSADM

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.

Continue Reading
Creating Audiences via STSADM

Creating Audiences via STSADM

The project that I’m currently working has a need to create a ton of audiences representing divisions, departments, locations, etc. We wanted to be able to include the creation of these audiences in our install script so that we easily recreate the audiences in various environments.

Continue Reading
Adding a List View Web Part to a Page

Adding a List View Web Part to a Page

I had a requirement recently to show a view of a list from a child site on the page of a parent site. You can of course do this easily with a content query web part and then just manipulate the XSL to get the output to look the way you want but what if you want to be able to use the out of the box List View Web Part so that you get the toolbar and all the other stuff that the web part provides?

Continue Reading
Delete All Users from a Site Collection

Delete All Users from a Site Collection

I was chatting with my buddy and fellow MVP, Todd Klindt, the other day and he was asking if I had a custom command that would allow him to quickly delete all the users added to a site collection.

Continue Reading
Creating List/Library Folders Programmatically

Creating List/Library Folders Programmatically

I’ve got this method that I keep copying and pasting into different solutions so I figured I’d post it here in case someone else could benefit from it. You would think that it would be really easy to create folders in a list or library but oddly enough (or, if you’ve done SharePoint development long enough you would say typically enough), it’s not.

Continue Reading