Hi @ MDuBose
The Author property of the Get-SPWeb cmdlet returns the user who created the site, not the site owner. To get the site owner, you need to use the Get-SPOSite cmdlet, which returns the site collection information, including the owner.
If you want to get the site owner of a SharePoint Online site, you can use the following PowerShell script:
#Variables for Admin Center & Site Collection URL
$AdminCenterURL = “https://<TenantName>-admin.sharepoint.com/” $SiteURL = “https://<TenantName>.sharepoint.com/sites/<SiteName>”
#Connect to SharePoint Online
Connect-SPOService -url $AdminCenterURL -Credential (Get-Credential)
#Get Site Owner
Get-SPOSite $SiteURL | Select Owner
This script will connect to your SharePoint Online admin center and then get the owner of the specified site collection.
If you want to get the site owner of all SharePoint Online sites, you can use this script:
$AdminCenterURL = “https://<TenantName>-admin.sharepoint.com/”
#Connect to SharePoint Online
Connect-SPOService -url $AdminCenterURL -Credential (Get-Credential)
#Get Site owners of all site collections Get-SPOSite -limit ALL | Select URL, Owner
This script will connect to your SharePoint Online admin center and then get the URL and owner of all site collections.
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.
Best Regards
Cheng Feng