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.

Juan Carlos González

Written by

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade