I've inherited a site collection that has 20,000+ subsites. I cannot connect any management tools to it like Metalogix or ShareGate and I've been told PowerShell will fix it.
I hope to batch the jobs into runs of around 500 with the batch of 500 subsites being loaded from a reference file like a CSV.
I've been told the commands required can only run server side and that to run against 500 sites in a batch, the entire site collection permissions would need to be loaded in each time. Is this correct, it sounds very inefficient.
A little more info. Each subsite uses between 3-5 AD groups to set permissions at its root. Each AD group is set a custom permission level. I'm presuming PowerShell can also manipulate permission levels when adding AD groups?