aarebrot.net Frode's blog on Sharepoint and other stuff

Getting your GUID on, macro style

Posted on February 7, 2011
VN:F [1.9.22_1171]
Rating: 5.0/5 (1 vote cast)

I'm currently working on creating some custom discussion boards in SharePoint 2007 for a client. With that comes creation of features and content types, which in turn requires GUIDs to be generated. Generating a GUID in Visual Studio is easy. Just click Tools on the menu, followed by Create GUID. So what's the big deal?

When creating a bunch of content types I find that it becomes cumbersome to click the menu, copy a GUID, then paste it into the document before finally removing braces and dashes. So I've created two short macros to speed up the process with simple keyboard shortcuts. This is mostly a reminder for myself so I remember how to do this next time I'm setting up a new Dev environment, but I'm sure it can come in handy for someone else as well.

Powershell: Retrieve Content Types and Column Fields

Posted on August 25, 2008
VN:F [1.9.22_1171]
Rating: 0.0/5 (0 votes cast)

So you just found the wicked awesome list of content types and life is good, but you kinda wish you could get a hold of all those content types and column fields that you made yourself. No worries, Powershell is your trusted friend who's always ready to help.

Below are two very basic Powershell scripts. They both connect to a specified site collection, and one exports Content Types while the other exports Column Fields.