Does any one know how to copy a site collection using PowerShell. I used this :

Copy-SPSite http://contoso/sites/OldTeam -DestinationDatabase WSS_Content -TargetUrl http://contoso/sites/NewTeam

but it show an error: copy-SPSite is it not a command.


You can also use sharepoint backup restore feature to clone sharepoint site.

Backup-SPSite -Identity "http://myspsite" -Path "C:\backups\myspsite.bak" -Force -Confirm:$False

Restore-SPSite "http://myspsite:81" -Path C:\backups\myspsite-81.bak -Force -Confirm:$False

For more details:




You should use SharePoint Management Shell for this, it includes the SharePoint-Commands.

  • yes i used SharePoint Management Shell – Imen Turki Sep 3 '14 at 16:24
  • When typing Copy-SP you can use [Tab] for autocomplete and if there's nothing wrong with you Shell you should also find Copy-SPSite. – Stefan Hennicken Sep 3 '14 at 16:26

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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