1

Hi in same web application how to create a new site collection based on existing subsite. I have below subsite:

http://webapp/sites/subsite1

I want to create a new site collection and import subsite1 under it:

http://webapp/sitecoll

  • Is this a one of, or is it intended as a general template for Site creation? – Kasper Bo Larsen Jan 27 at 9:33
0

You must export and import existed site to new blank site, if you want to move it to new site collection:

  1. Export the subsite using the Export-SPWeb http://webapp/sites/subsite1 -Path "subsite1_export.cmp"
  2. Create a subsite on the destination without template New-SPWeb http://webapp2/sitecoll/subweb2
  3. Import site from exported file Import-SPWeb http://webapp2/sitecoll/subweb2 -Path subsite1_export.cmp -IncludeUserSecurity -Overwrite
  • I tried this but the imported site should have same template id like targe site – adilahmed Jan 28 at 17:21

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

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