Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Someone created a site under the Central Administration site collection. I need to move it to its own collection.

I tried using Export-SPWeb and Import-SPWeb, but I get the this error:

Import-SPWeb : Cannot import site. The exported site is based on the template S
TS#0 but the destination site is based on the template STS#1. You can import si
tes only into sites that are based on same template as the exported site.
At line:1 char:13
+ Import-SPWeb <<<<  -Identity http://***** -Path ***************
    + CategoryInfo          : InvalidData: (Microsoft.Share...CmdletImportWeb:
   SPCmdletImportWeb) [Import-SPWeb], SPException
    + FullyQualifiedErrorId : Microsoft.SharePoint.PowerShell.SPCmdletImportWe

How do I fix this? Or is this even the best way to do this?

share|improve this question
up vote 1 down vote accepted

Found the answer:

First, which template is STS#0?

PS K:\> get-spwebtemplate "sts#0"

Name                 Title                                    LocaleId   Custom
----                 -----                                    --------   ------
STS#0                Team Site                                1033       False

Armed with this information, I was able to create a new collection with the correct template and complete the import.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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