Looking for expert opinions on this script I have written. The intention is to deny access to sites identified as not being used, in preparation for a migration from SharePoint 2010 to SharePoint Online. Have I missed anything?
I have skipped removing the limited access permissions, because I am not really sure what they are there for... Are they required system permissions?
I am a bit concerned about this line:
$spweb.hasuniqueroleassignments -eq "True"
should it actually be:
$spweb.hasuniqueroleassignments -eq $True
Had to rename my PS1 to TXT, I guess it is deemed dangerous