Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
i want PowerShell script for SharePoint 2013 CSOM to get below details
You can use the PowerShell command as below:
$Site = Get-SPSite "http://spsite"
$Site.RootWeb.SiteAdministrators | Select DisplayName, Email
$Site.Owner | Select DisplayName, Email
Required, but never shown