I tried using all the below examples for copying my site pages across different SharePoint sites but always keep getting the below error: Can someone give correct syntax, please?
Copy-PnPFile: Cannot contact site at the specified URL
Copy-PnPFile -SourceUrl SitePages/Home.aspx -TargetUrl "/sites/destination/SitePages"
Copy-PnPFile -SourceUrl SitePages -TargetUrl "/sites/destination/SitePages"
Copy-PnPFile -SourceUrl /sites/sourcesite/SitePages/Home.aspx -TargetUrl "/sites/destination/SitePages"
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.