Uninstall-Module -Name SharePointPnPPowerShell2013
uninstall-Module -Name SharePointPnPPowerShell2013
uninstall-Module -Name SharePointPnPPowerShell2013
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12 Install-Module SharePointPnPPowerShell2013 -SkipPublisherCheck -AllowClobber
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.