Copy Home Page from one SharePoint to another
I am trying to copy the Home.aspx file from one SharePoint site to another, but there is no option to do that within SharePoint, so how do I do this ?
1 answer
-
Hello @Doshi, Mayur,
Thank you for sharing your valuable question.
Based on my findings, using PnP PowerShell may help you copy the
Home.aspxpage between sites more reliably. If you’re not familiar with PowerShell, you may want to involve your IT administrator to assist with the setup and execution.Step 1: Install and set up PnP PowerShell:
Please refer to:
(Note: This link is shared by community members for your convenience. It points to a third-party site that is not managed or verified by Microsoft. We can’t guarantee the quality, safety, or suitability of any content or software found there. Please review carefully and make sure you understand any potential risks before using it.)
Step 2: Prepare your script
$SourceSiteURL = "https://tenant.sharepoint.com/sites/mysourcesite" $DestinationSiteURL = "https://tenant.sharepoint.com/sites/mydestinationsite" $PageName = "Home.aspx" #Connect to Source Site Connect-PnPOnline -Url $SourceSiteURL -ClientId <client id of your Entra ID Application Registration> -Interactive #Export the Source page $TempFile = [System.IO.Path]::GetTempFileName() Export-PnPPage -Force -Identity $PageName -Out $TempFile #Import the page to the destination site Connect-PnPOnline -Url $DestinationSiteURL -ClientId <client id of your Entra ID Application Registration> -Interactive Invoke-PnPSiteTemplate -Path $TempFileStep 3: Run your PowerShell as Administrator and run the script above
Step 4: Verify the result
- Go to the destination site
- Open Site Pages
- Locate Home.aspx
- Open > review > Publish
Notes
- Some elements (images, links, or web parts) may require adjustment after migration
- Permissions and version history are not carried over
- You may need sufficient permissions (Site Owner or Admin) for this to work properly
If you encounter any issues or errors during the process, I recommend contacting Microsoft Support so they can assist further, including via a remote session if needed.
For business support:
- Find your Microsoft 365 admin: If you don't know who the global admin is in your organization, you can find guidance here: How can I find my Microsoft 365 admin? - Microsoft Support
- Submit a service request: The Global Administrator should create a support request with Microsoft to receive advanced technical assistance. For detailed instructions, see: Get support - Microsoft 365 admin | Microsoft Learn
- If your subscription is from a partner or reseller, contact the reseller's support provider to help open a service request on behalf of you instead.
If you discover any solutions or have additional insights, please consider replying to this thread to help others in the community.
I sincerely apologize for redirecting you to the Microsoft Technical Support Team. While I strive to assist as much as possible here in the forum, my resources are limited when it comes to backend-level diagnostics and advanced troubleshooting.
Thank you, and please let me know if you need any further assistance.
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.
