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

1
  • Is this a one of, or is it intended as a general template for Site creation? Jan 27, 2019 at 9:33

1 Answer 1

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
1
  • I tried this but the imported site should have same template id like targe site
    – adilahmed
    Jan 28, 2019 at 17:21

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.