Tue. Jun 7th, 2022

Pre-migration Tasks

Add Site Collection Admin to site

#Parameters value $spopasswordFile = "c:\PSscripts\Credentials\spo_password.txt"; $spopassword = Get-Content $spopasswordFile | ConvertTo-SecureString $NetworkpasswordFile = "c:\PSscripts\Credentials\Network_password.txt"; $Networkpassword = Get-Content $NetworkpasswordFile | ConvertTo-SecureString #Setup Credentials to connect $Credentials = New-Object System.Net.NetworkCredential($src_username, $Networkpassword, $domain)…

Set Site To Ready Only

Function SetSiteToReadyOnly([String]$SiteURL,$Credentials,$reportYN) { Try { $PermissionToAdd = "Read Policy" $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) $AddPermissionRole…

Check-in-Files

Function Check-in-Files([String]$WebDomain,[String]$sprint,[String]$srcURL,[String]$dstURL,[String]$SiteTitle,[String]$ReportOutput, $SummaryFile, $choice, $Credentials, $SPOCredentials) { Try{ $ctx = New-Object Microsoft.SharePoint.Client.ClientContext($srcURL); $ctx.Credentials = New-Object System.Net.NetworkCredential($src_Username, $Networkpassword) #Get the Web $Web = $Ctx.Web $Ctx.Load($Web) $Ctx.Load($Web.Webs) $Ctx.ExecuteQuery() $Timestamp = GetTimeStamp #Get…

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