Deleting Orphaned Event Receivers using PowerShell

Posted on 4 CommentsPosted in Article, Scripts, SharePoint 2007

While looking through the event logs at a client of mine the other day I came across an odd error that was occurring regularly.  Apparently they had developed a Feature which contained an Event Receiver which was programmatically bound to a series of lists.  As time went on their requirements changed so they deleted the event receiver class.  Problem was that the binding to the lists still exists so every time an item was updated […]

Listing Event Receivers using STSADM

Posted on Leave a commentPosted in SharePoint 2007, STSADM Commands

This post wraps up my event receiver posts.  I just finished documenting the gl-addeventreceiver and gl-deleteeventreceiver commands and this final command would be gl-enumeventreceivers. This command is the simplest of the three as it’s just looping through all the event receivers belonging to the specified target and dumping the results out as XML.  I’ve tried to structure the XML so that it conforms to the CAML schema therefore allowing the results to be put into […]

Deleting an Event Receiver using STSADM

Posted on Leave a commentPosted in SharePoint 2007, STSADM Commands

I had some time so I decided to add the counterparts to the gl-addeventreceiver command that I just published.  I created two new commands, gl-deleteeventreceiver and gl-enumeventreceivers.  This post will cover the delete command and I’ll go over the enum command in my next post. From a code perspective the delete command is very similar to the add command.  The main difference (aside from the obvious call to Delete instead of Add) is that I’ve […]

Adding Event Receivers using STSADM

Posted on 1 CommentPosted in SharePoint 2007, STSADM Commands

A few months ago I created a CodePlex project that allows you to configure a library to allow the storing of web part page history.  The project at its core used three item event receivers to listen to certain key events and either backup the page or restore the page based on the event.  Recently I was thinking about what might be the best way to allow people to script the settings that enable the […]