Office 365: How to get the list of modern team sites using Get-SPOSite!

With the latest stuff added by Microsoft to SharePoint Online (SPO), we can get the list of modern team sites created in a SPO tenant using Get-SPOSite cmdlet as detailed bellow (Note: In order to be able to execute the script, be sure to install last version of the SPO Management Shell). You can also download a more completed script from here: How to get the list of modern team sites in a SPO tenant

$sSPOAdmin="jcgonzalez@nuberosnet.onmicrosoft.com" $sMessage="Type your SPO Credentials" $SPOCredentials=Get-Credential -UserName $sSPOAdmin -Message $sMessage $sSPOAdministrationUrl="https://nuberosnet-admin.sharepoint.com" Connect-SPOService -Url $sSPOAdministrationUrl -Credential $SPOCredentials Get-SPOSite -Template GROUP#0 -IncludePersonalSite:$false

Once you execute the script, you will get the following results:

Reference:

Originally published at jcgonzalezmartin.wordpress.com on February 24, 2017.

Show your support

Clapping shows how much you appreciated Juan Carlos González’s story.