Setting Back Connection Host Names for SharePoint 2007 Using STSADM

Posted on 9 CommentsPosted in SharePoint 2007, STSADM Commands

Not too long ago Microsoft introduced a security fix which addresses a possible attack vector in which malicious software tries to impersonate a local request, thereby bypassing certain constraints.  The problem with this fix is that it introduces some issues for SharePoint servers, effectively resulting in 401.1 Access Denied errors.  Spence Harbar does a great write-up of the fix and the options available to get your SharePoint environment working again so I won’t re-hash all […]

Custom SharePoint 2007 Site Collection Creation Page

Posted on 19 CommentsPosted in Article, SharePoint 2007

A lot of people that are using SharePoint 2007 (WSS or MOSS) for collaboration have either enabled self service site creation in which they allow their end-users to create a page using the scsignup.aspx page or they have some process in place in which an IT administrator creates site collections for their users.  Usually companies go the later route due to limitations with the self service site creation process; specifically, you cannot have the site […]

Setting List Properties using STSADM

Posted on 2 CommentsPosted in SharePoint 2007, STSADM Commands

Recently I had a reader of my blog send me a modified version of my gl-addlist command in which he added some additional properties to set a couple of the SPList properties (specifically the versioning settings).  In thinking about this I decided that it might be helpful to have a command specifically for setting most of the SPList properties rather than try to incorporate them into a more general command like the gl-addlist command so […]

Creating Default Site Groups After Creating Site Collections Using STSADM

Posted on 2 CommentsPosted in SharePoint 2007, STSADM Commands

I got an email from Jennifer Davis today asking why, when she ran my gl-createsiteindb command, did the default site groups not show up in the site collection, specifically the “<site name> Members”, “<site name> Owners”, and “<site name> Visitors” groups.  Upon digging further she realized that this behavior was not limited to my command as the out-of-the-box createsite and createsiteinnewdb commands exhibited the same behavior. Basically what’s happening is that if you create the […]

Getting an SPWebApplication object using PowerShell

Posted on 4 CommentsPosted in PowerShell Cmdlets, SharePoint 2007

A SharePoint deployment isn’t much of a deployment if there are no web applications.  A web application in SharePoint contains one or more content databases, each of which can contain one or more site collections, etc., etc.  The SPWebApplication class has tons of methods and properties for directly or indirectly manipulating all things related to web applications – you can do backups, add content databases and site collections, set alert settings, manipulate the web.config file, […]

Getting an SPFarm object using PowerShell

Posted on 4 CommentsPosted in PowerShell Cmdlets, SharePoint 2007

There are several core SharePoint objects that PowerShell programmers may need to work with in order to manipulate SharePoint via PowerShell scripts.  Getting these objects is pretty simple but not all that intuitive to users who are still trying to learn PowerShell and the SharePoint API. The SPFarm object is the top level object for working with SharePoint and it provides access to all the global settings for all servers, services, and solutions that are […]

Working with SPWeb(Info) Objects Using PowerShell

Posted on 5 CommentsPosted in PowerShell Cmdlets, SharePoint 2007

I know, I know, I’m way behind on documenting my PowerShell cmdlets – I will be striving to get them done as soon as possible.  I’ve already documented one of them, the Get-SPSite cmdlet, and I will now continue with the Get-SPWeb cmdlet.  Hopefully I’ll be able to wrap up the others much quicker as they are a lot simpler – then I can finally start building new ones 🙂 Like the Get-SPSite cmdlet the […]

Why I don’t use OpenWeb()

Posted on 14 CommentsPosted in Article, SharePoint 2007

This has come up in various conversations recently so I figured I’d write up a short post about it.  When trying to obtain an SPWeb object there are a couple of different options available using members of an SPSite instance.  The first, and more common, is the OpenWeb() method and the second is using the AllWebs[] property collection.  Here’s the problem I have with OpenWeb() (specifically the overload that takes no arguments) – consider the […]

Synchronizing Quota Settings via STSADM

Posted on 6 CommentsPosted in SharePoint 2007, STSADM Commands

When working with clients on their SharePoint deployment I often get questions about the quota templates and how they work.  Quotas are kind of odd because of the disconnected nature of the quota template and the quota that is assigned to a site collection.  Often people assume that changing the template settings affects all site collections using that template.  Unfortunately that is not the case.  The issue is made worse by the fact that the […]

Setting the Master Page Using STSADM

Posted on 15 CommentsPosted in SharePoint 2007, STSADM Commands

I’d thought about building an STSADM command to enable setting the master page of a site for quite a while but had opted not to do it simply out of principle – it’s generally a better idea to do this via a Feature and I didn’t really want to promote a bad practice.  Ultimately though I had to concede that there are administrators who will not have the luxury of having developers who can create […]