Hi @Santhosh Kumar,
You could use the Get-SPOSite cmdlet, which returns the site collection information, including the owner.
$SiteURL = "https://crescent-admin.sharepoint.com"
$CSVPath = "C:\Temp\SiteOwners.csv"
#Connect to Admin Center Site
Connect-PnPOnline -Url $SiteURL -Interactive
#Get All Site collections
$SiteCollections = Get-PnPTenantSite
$SiteOwners = @()
#Loop through each site collection
ForEach($Site in $SiteCollections)
{
$Owners = $Site.Owner
If($Owners.count = 1){
Write-Output "Site:" $Site.Url
}
}
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.