This project is read-only.

Introduction

This utility allows SharePoint Administrators to be able to list, add and delete event receivers bound to Content Types or a SharePoint List/Document Library.

Firstly copy the executable to a directory on your SharePoint server for example the directory: c:\install\itsp.eventreceiverconfig\

Usage

Start up a command prompt:-
  • start->run
  • type 'cmd' and click OK
  • cd /d "c:\install\itsp.eventreceiverconfig\"

To see utilities help information then type:-
  • itsp.eventreceiverconfig

List Event Receiver
To list event receivers for a content type then do the following:-
  • itsp.eventreceiverconfig -mode list -url sharepointurl -targettype contenttype -targetname content type name
    • e.g itsp.eventreceiverconfig -mode list -url http://sharepoint/sites/site1 -targettype contenttype -targetname Documents

Saving Event Receiver Information
We suggest you use this before using the utility to back up any event receiver configurations before adding/deleting them
  • itsp.eventreceiverconfig -mode list -url sharepointurl -targettype contenttype -targetname content type name > eventreceiverinfo.txt
    • e.g itsp.eventreceiverconfig -mode list -url http://sharepoint/sites/site1 -targettype contenttype -targetname Documents > documenteventreceiverinfo.txt

Add Event Receiver
To add an event receiver to a content type then do the following:-
Delete Event Receiver
To add an event receiver to a content type then do the following:-
  • itsp.eventreceiverconfig -delete-url sharepointurl -targettype contenttype -targetname content type name -name EventReceiverName
    • e.g itsp.eventreceiverconfig -delete-url http://sharepoint/sites/site1 -targettype contenttype -targetname ITSPDocument -name CheckandFixCustomerMetadata

List Event Receivers in the Assembly
This feature allows you to list all the event receiver class within an assembly. The utility will enumerate through the base Microsoft.SharePoint assemblies.
  • itsp.eventreceiverconfig -mode list -url sharepointurl -targettype assembly -targetname assembly name -assembly assembly name
    • e.g itsp.eventreceiverconfig -mode list -url http://sharepoint/sites/site1 -targettype assembly -targetname "MyAssembly" -assembly "MyAssembly"

Last edited Jun 28, 2011 at 11:01 PM by Quannum, version 4

Comments

No comments yet.