When you deploy a solution for SharePoint Online (SPO), sometimes, you need to apply some post – configurations and need to iterate through all sites and sub-sites in a given Site Collection. In general talking about Office 365, there is more frequent the use of PowerShell to solve some kind of processes automation.
If you google about this topic, there are a lot of ways to achieve this, from server code doing some
I’d like to share a PowerShell function and script that uses “Recursion” to achieve this task:
One important consideration is I assumed the DLLS are in a subfolder called DLLs in the same path the PowerShell script is.
You can download the full script: PS.IterateAllWebsRecursively.zip