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
b
How do I fix this? Or is this even the best way to do this?
Found the answer:
First, which template is STS#0?
Armed with this information, I was able to create a new collection with the correct template and complete the import.