We can fetch all personal sites that are provisioned in our tenant using the below scripts.
  1. #Parameter required
  2. Param(
  3. [string]$Username,
  4. [string]$Password,
  5. [string]$SPAdminUrl
  6. )
  7. $SecurePassword = ConvertTo-SecureString -String $Password -AsPlainText -Force
  8. $Credential = New-Object -TypeName "System.Management.Automation.PSCredential" -ArgumentList $Username, $SecurePassword
  9. Connect-SPOService -Url $SPAdminUrl -Credential $Credential
  10. Write-Host "#Connected to SP Tenant"
  11. $OD4BSites = Get-SPOSite -IncludePersonalSite $true -Template "SPSPERS#10"
  12. Write-Host "There are total "$OD4BSites.Length
  13. Foreach($OD4BSite in $OD4BSites){
  14. Write-Host $OD4BSite.Url
  15. }
Save the above as a PowerShell script and execute it. Please find the output image below.