Friday, May 3, 2013

Powershell - Display Event Receivers for a specific Sharepoint List


$web=Get-SPWeb "http://siteURL"
$list=$web.Lists["ListName"]
$list.EventReceivers
$web.Dispose()

Display Names of the Event receivers 

$web=Get-SPWeb "http://SIteURL"
$list=$web.Lists["ListName"]

$list.EventReceivers |ForEach-Object {Write-host $_.Type  $_.Name}
$web.Dispose()

No comments:

Post a Comment