1

I am familiar with how to export/import a site using PS. My question is, is it possible to do the same operation with a Site Page? For example, SiteA/default.aspx contains 2 Site Pages called ToDoList (SiteA/SitePages/ToDoList.aspx) and ThingsDone (SiteA/SitePages/ThingsDon.aspx). Is it possible to export/import the 2 Site Pages to another Site in a different Site Collection?

1 Answer 1

2

yes in SharePoint you can export and import file or specific object.

Export-SPWeb -identity "http://sitename1" -ItemUrl "/pagename.aspx"  -Path "c:\pagename.aspx" 

Import-SPWeb -identity "http://sitename2" -Path "C:\pagename.aspx"
2
  • It has successfully exported and imported but the web parts contained in the Site Page are rendering with errors. "Web Part Error: List does not exist. The page you selected contains a list that does not exist. It may have been deleted by another user." What was I supposed to look out for?
    – Nina G
    Commented Dec 31, 2015 at 19:33
  • Check if any list or library must be there if any code refers to that.
    – Ankur
    Commented Dec 31, 2015 at 20:46

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.