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) $...
Hi! I'm Ramesh Beerla, working as a Team Lead and passionate about developing automated solutions to customers. In this blog I will post some important articles which will be useful for fellow developers