I cannot find a way to get the creator of a site in a SharePoint site collection (There are more than one administrators), be it in web view or programmatically.
I tried get-author-creator-of-a-site-subsite-using-jsom-or-rest-api but seems to work only for (sub-)subsites. I also tried https://www.sharepointdiary.com/2018/02/find-who-created-site-in-sharepoint.html. I would prefer using PnP, but no solution has worked so far.
$con = Connect-PnPOnline -ReturnConnection -Url $mySiteUrl -Credentials $myCreds $web = Get-PnPWeb -Connection $con Get-PnPProperty -ClientObject $web -Property Author Get-PnPProperty : 'Author' is not a member of 'Microsoft.SharePoint.Client.Web' + Get-PnPProperty -ClientObject $Web -Property Author + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : WriteError: (:) [Get-PnPProperty], ArgumentException + FullyQualifiedErrorId : EXCEPTION,SharePointPnP.PowerShell.Commands.Base.EnsureProperty
I tried including all properties
$web = Get-PnPWeb -Connection $cnx -Includes allproperties without any success.