Forum Discussion
pnm537
Nov 22, 2024Copper Contributor
Help With Site Inventory (SharePoint Online/PowerShell)
Hi, all, I've been trying to do something I thought would be easy but isn't: Get a list of all of my tenant's SharePoint online sites and subsites. I know this cannot be done in the SharePoint Admi...
michalkornet
Nov 25, 2024Steel Contributor
hi pnm537 , I am not sure if you can use CLI for M365 or PnP PowerShell, but check this sample. The script should list all sites and subsites. -> https://pnp.github.io/script-samples/get-all-site-collections-subwebs/README.html?tabs=cli-m365-ps