Skip to main content

Posts

Showing posts from December, 2018

Check Attached Remote Event Receivers for list

function Get-SPOListEventreceivers { param (   [Parameter(Mandatory=$true,Position=1)] [string]$Username, [Parameter(Mandatory=$true,Position=2)] $AdminPassword,         [Parameter(Mandatory=$true,Position=3)] [string]$Url )   $ctx=New-Object Microsoft.SharePoint.Client.ClientContext($Url)   $ctx.Credentials = New-Object Microsoft.SharePoint.Client.SharePointOnlineCredentials($Username, $AdminPassword) try { $ctx.ExecuteQuery() } catch [Net.WebException]         {                         Write-Host $Url " failed to connect to the site" $_.Exception.Message.ToString() -ForegroundColor Red }  $ctx.Load($ctx.Site)   $ctx.Load($ctx.Web.Lists)   $ctx.ExecuteQuery()   Write-Host $ctx.Web.Lists.Count   for($j=0;$j -lt $ctx.Web.Lists.Count;$j++)   {   $lista=$ctx.Web.Lists[$j]  $ctx.Load($lista)   $...