Under one of our company's subsites, we have /SitePages/{employee-name}.aspx which is a normal SharePoint page with the employee's information in text plus their picture.
I'm looking for a way to loop through all SitePages and retrieve ONLY the image and save it locally with PowerShell. I've tried a number of cmdlets from the PnP PowerShell such as Get-PnPWikiPageContent, to no avail. Is it even possible to obtain specific elements of an aspx SharePoint page such as images?
Here's an example of what I tried:
Get-PnPWikiPageContent -ServerRelativePageUrl "/SitePages/{employee-name}.aspx"
If anyone could tell me how to do it from even a single page (without looping through them all) I'd be more than happy.
Thanks!