Question

Is there anyway to get a list of all the "hidden" site collections type GROUP#0 via powershell?

I noticed that modern team sites created by users do not appear in the central administration, and all the information and commands so far seem not to work.

I tried this without success (Filtering is not supported for property $_template)

Get-SPOSite -Filter {$_template -eq "Group#0"}

And this but it returns nothing:

Get-SPOSite | where {$_template -eq "Group#0"}

However, if I save the site collection in a variable (Get-SPOSite) and check it's "Template" property it is clearly a "GROUP#0".

Has anybody solved this?

Was it helpful?

Solution 2

In case anybody is having the same issues in the future, please use the O365 admin account which has all access in order to retrieve all the site collections. The SharePoint admin account will only return the SharePoint site collections which are also visible via the central admin. There is no issue with the command.

OTHER TIPS

To get all Office 365 Group site collections, using the following PowerShell:

Get-SPOSite -Template GROUP#0

Licensed under: CC-BY-SA with attribution
Not affiliated with sharepoint.stackexchange
scroll top