$GC = Start-SPAssignment $Site = $GC | Get-SPSite http://yourserver/sites/yoursite $Web = $Site.Rootweb $Web.Lists | Where {$_.EventReceivers.Count -gt 0} | Select Title,EventReceivers | Format-List Stop-SPAssignment $GC
For SharePoint 2007 (or 2010)
[System.Reflection.Assembly]::LoadWithPartialName("Microsoft.SharePoint") $Site = New-Object Microsoft.SharePoint.SPSite(http://yourserver/sites/yoursite) $Web = $Site.Rootweb $Web.Lists | Where {$_.EventReceivers.Count -gt 0} | Select Title,EventReceivers | Format-List $Web.Dispose() $Site.Dispose()
You could even start at the farm ( root ) level and drill down to applications, site collections, sites and documents to see each event receivers! Hope this helps you
Lijo George edited Revision 10. Comment: layout modification
Richard Mueller edited Revision 9. Comment: Modified title casing, added tags
Fernando Lugão Veltem edited Revision 8. Comment: remove en-us from title
Gokhan Ozcifci edited Revision 7. Comment: Design and new title
Craig Lussier edited Revision 6. Comment: added en-US to tags and title
Rich Prescott edited Revision 3. Comment: Updated script formatting for ease of reading
Craig Lussier edited Revision 2. Comment: added article tag - "has code", added garbage collection and pipes to the examples where necessary
Ed Price - MSFT edited Revision 1. Comment: Title casing and tags. Great article!
Nice time saving snippet. Thanks for sharing.
good article! maybe for the other one's put comment's on your code ! Gokan
Good article. I use my console application to check all but now i will try with your script