Can you please give me a script or commands to get the all the list of users are having site owner and full control access from sites/sub-sites in a site collection.
I tried this but it is not giving all site owners and full control users.
Get-SPWebApplication http://sharepoint.com | Get-SPSite -Limit All | Get-SPWeb -Limit All | Select Title, URL, ID, Author | Export-CSV D:\siteowners.csv -NoTypeInformation