title: Get user details from SharePoint with PowerShell
body: <p>I'm using this PowerShell script to get site owners:</p>
  
  <pre>
  $siteUrl = Read-Host "enter site url here:"
  
  $rootSite = New-Object Microsoft.SharePoint.SPSite($siteUrl)
  
  $spWebApp = $rootSite.WebApplication
  
  foreach($site in $spWebApp.Sites)
  
  {
  
      foreach($siteAdmin in $site.RootWeb.SiteAdministrators)
  
      {
  
          Write-Host "$($siteAdmin.ParentWeb.Url) - $($siteAdmin.DisplayName)"
  
      }
  
      $site.Dispose()
  }
  
  $rootSite.Dispose()
  </pre>
  
  <p>I want that it will print some details of the site owner like phone number and email. How can I achieve that?</p>