Here is what I did:
1) Create a new site collection in Central Admin
2) Delete the site from the site collection
3) RDP to the SharePoint Server
4) Open up PowerShell ISE
5) Copy and run this command:
# imports SharePoint powershell
if ( (Get-PSSnapin
-Name "Microsoft.SharePoint.PowerShell"
-ErrorAction SilentlyContinue)
-eq $null
)
{
Add-PsSnapin
"Microsoft.SharePoint.PowerShell"
}
#copy web
Copy-SPSite https://portal.contoso.com
-DestinationDatabase WSS_Content
-TargetUrl https://portal.contoso.com/sites/test
You will need to change the site source, destination, and database name when you run this command.
Source: https://docs.microsoft.com/en-us/powershell/module/sharepoint-server/copy-spsite?view=sharepoint-ps
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.