| By Corey Roth | Article Rating: |
|
| October 21, 2012 11:44 PM EDT | Reads: |
953 |
I’m working on my PowerShell for SharePoint 2013 (SPC195) talk for SPC12 and I find this new cmdlet so useful I thought I would share it immediately. The cmdlet is Copy-SPSite and it’s easy to use. Just run it and before you know it, you’ll have a duplicate of a site collection on a fresh new URL. You can even optionally specify a new content database. Here is what it looks like:
Copy-SPSite http://server/sitecollection –DestinationDatabase MyContentDb –TargetUrl http://server/sitecollection2
A successful execution will return nothing at the command prompt. This is a great cmdlet for developers and IT pros that often need to quickly clone site collections and tear them down. It will take longer for bigger site collections of course. Try it out today.
Read the original blog entry...
Published October 21, 2012 Reads 953
Copyright © 2012 SYS-CON Media, Inc. — All Rights Reserved.
Syndicated stories and blog feeds, all rights reserved by the author.
More Stories By Corey Roth
Corey Roth, a SharePoint Server MVP, is a consultant at Infusion specializing in SharePoint for clients in the energy sector. He has more than ten years of experience delivering solutions in the energy, travel, advertising and consumer electronics verticals.
Corey specializes in delivering ECM and search solutions to clients using SharePoint. Corey has always focused on rapid adoption of new Microsoft technologies including Visual Studio 2010, .NET Framework 4.0, and Silverlight.
He is a member of the .NET Mafia (www.dotnetmafia.com) where he blogs about the latest technology and SharePoint. He is dedicated to the community and speaks regularly at user groups and SharePoint Saturdays.

