Copy-SPSite

This has to be the most useful, and simplistic SharePoint cmdlet……just wish it had existed in SP2010!

Allows you to create a complete replica of a Site Collection without having to generate a destination ‘bucket’.

Is also a great way of renaming a Site Collection (i.e copy site then delete the former)

Copy-spsite http://%sitecollectiontocopy% -DestinationDatabase %DBNmae% -TargetURL http://%newsitecollection%

http://technet.microsoft.com/en-us/library/fp161280.aspx

One thing to ponder however, is that this command doesn’t appear to play nicely if the source and destination are different Web Apps.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s