Jean Paul's Blog

There are 2 types of People in the World, One who Likes SharePoint and..

  • Microsoft MVP

  • MindCracker MVP

  • CodeProject MVP

  • eBook on SharePoint 2010

  • eBook on Design Patterns

  • eBook on Windows Azure

  • NLayers Framework @ CodePlex

  • MSDN Forums

  • .Net vs. Java

    Due to Public Demand

Posts Tagged ‘site’

Export & Import Site, Sub Sites using STSADM

Posted by Jean Paul on July 2, 2013

In this example I will demonstrate how to export a site & sub sites using STSADM. We have already explored the PowerShell, Server Object Model methods of exporting & importing.


Following are the site & sub site to be exported.

  1. Home
  2.   – HR
  3. URL: http://server

Step 1: Export

Open SharePoint 2010 Management Shell console window & run the following command.

stsadm –o export –url http://server –filename c:exportsite.cmp –includeusersecurity -versions

The –o denotes operation, .cmp represents content migration package.

Execute the command & you can see updates on the command line window.


Step 2: Create new site collection

You can create the destination site collection for importing in the next step.


Step 3: Import

Execute the following command to import the exported site from file.

stsadm –o import –url http://server/newsitecollection –filename c:export.cmp

Execute the command & you can see updates on the command line window.


Wait for the operation to be completed.  You can view the log file for more details on import operation.

Step 4: Verify

Now you can use the new URL to verify the site content.  Ensure the sub site is existing.  As a check list perform the following:

  1. Compare Home Page
  2. Ensure Site Features are Activated
  3. Ensure Lists, Libraries exists
  4. Ensure Sub Sites are created
  5. Ensure User Permissions



In this example I have demonstrated how to export a site & sub sites using STSADM.

Posted in SharePoint | Tagged: , , , , , | Leave a Comment »

Error : Unable to Delete Site : SharePoint 2010

Posted by Jean Paul on June 28, 2013

I was working on a site moving, but the operation failed due to site template mismatch.  I ended up with a half-created site.

I can access the site through URL, but unable to access the site settings to delete the site.


I tried PowerShell Remove-SPSite approach, but it says it cannot find the site with url.


I tried to examine the problem using Squadron.  Luckily i was able to see the site there.  Then the rest is easy – created on Delete command which recursively delete sites & sub sites under.  It worked like a charm with Squadron.


Here are the steps involved to delete a site collection/site/list/library using Squadron.

Install Squadron

You can download the latest from

Install the application & run it from Start Menu > Programs > Squadron


Open the Explorer plugin from the left pane.


Locate the site to be deleted


Click the Delete button


Confirm site deletion


Great! Your defective site should be deleted now.


Here we have explored a rare scenario of defective site & deletion of it using Squadron.  You can use the tool for site collection deletion, list/library deletion as well

Posted in SharePoint | Tagged: , , , , | Leave a Comment »

SharePoint 2010 – How to move/copy Site without PowerShell?

Posted by Jean Paul on May 14, 2013


In the life time of a SharePoint deployment, we need to restructure sites like:

1. Copy one site to another parent

2. Move one site to another parent

Surely there are PowerShell, STSADM, and Server Object Model ways of doing it. But here I am going through the SharePoint Web Interface way of doing it.

The advantage is that we can do it without the help of SharePoint Administrator & Central Administration.

Content Database

Each site collection resides in a content database. In the case of web application, there could be multiple content databases.

Copying Site

Now let us see how to copy a site from one location to another. Open your SharePoint site & choose Site Actions > Site Settings.


Choose the Site Administration > Content and Structure item. In the appearing page, choose the sub site & context menu, then Copy item.


You will get the following dialog to choose the destination site.

We are copying site from one parent to another parent.


Choose your Destination Parent & click the Ok button. Your Copy operation should begin now..


Wait for a few minutes until the contents are copied. You can see the new site is created.


You can try accessing it using the URL.


The site appears as shown below.


Moving Site

For moving site, you can use the Move context menu item & then choose destination parent site.



If you cannot see the Site Content and Structure link, you need to activate the SharePoint Server Publishing Infrastructure feature from Site Settings > Site Collection features




In this article we have seen how to move/copy site without using PowerShell.

Posted in SharePoint | Tagged: , , , , , | 5 Comments »