Sunday 1 June 2014

Power shell command to check event receivers associated to a list/library

Add-PSSnapin Microsoft.SharePoint.PowerShell -ErrorAction SilentlyContinue

#Get the web
$Web = Get-SPWeb "<website>"

#Get the Target List
$List = $Web.Lists["Document"]

#Retrieve all event receivers associated with the list
$List.EventReceivers | Select Id, Type, Assembly, Class | FL