Tue. Jun 14th, 2022

Break Inheritance

Break Site Inheritance

Function BreakSiteInheritance([String]$SiteURL,$Credentials,$reportYN) { Try { $WebsCount=0 $Timestamp = GetTimeStamp $ctx = New-Object Microsoft.SharePoint.Client.ClientContext($SiteURL) Write-host "Connected to $SiteURL" -ForegroundColor Green $ctx.Credentials = $credentials; $Web = $ctx.Web $ctx.Load($web) $ctx.Load($web.Webs) $ctx.Load($web.RoleAssignments) Invoke-LoadMethod -Object…

This website uses cookies. By continuing to use this site, you accept our use of cookies.