Category: Getting started with Sharepoint 2010

Export/Import of SharePoint 2010 site using Power Shell

Hello again
I usually backup and restore the whole site collection via these commands:

1)Backup-SPSite -Identity -Path [-Force] [-NoSiteLock] [-UseSqlSnapshot] [-Verbose]

2) Restore-SPSite -Identity -Path [-DatabaseServer ] [-DatabaseName ] [-HostHeader ] [-Force] [-GradualDelete] [-Verbose]

but today i am going to show you how to import the web only:
1) Start by lunching SharePoint 2010 Management Shell, you will get a Power shell command prompt like below:
2) type this command “Export-SPWeb -Identity http:\\ServerName:port\Site -Path c:\\backup\Exportback.dat”


The NoFileCompression parameter lets you specify that no file compression is performed during the export process. Using this parameter can lower resource usage up to 30% during the export process. Using this parameter will result in a backup folder being created instead of a compressed file. If you use the NoFileCompression parameter in the Export-SPWeb command, you must also use it when you import the content by using the Import-SPWeb command.

3)To import to a site you have to use Import-SPWeb command, The complete command is

Import-SPWeb -Identity http:\\ServerName:port\Site -Path c:\\backup\Exportback.dat -Force

I have used -force to over write the existing site in my destination


How to install and Configure Sharepoint Server 2010

In this post i am going to show you  how to install and configure Microsoft SharePoint Server 2010 and how to create your first Site Collection.

So let’s Get Started 😉

As you certainly know, SharePoint 2010 requires a 64 bits OS to run.

For this example, I will use Windows 2008 R2 Standard edition. You can download a trial from Once on that site, click the button and enter your registration information to gain access to the download. Of course, if you already have a Windows ISO or DVD handy, you can use it.

As for Sharepoint i will be using the Enterprise edition. You can go to and follow the link to register for the 180-day trial version.

  1. extracting the EXE.
Double click the installation package to launch the installation of  Microsoft SharePoint Server 2010.
 then you will get The SharePoint 2010 installation Wizard
The SharePoint 2010 installation Wizard
           2. Installing the SharePoint Prerequisites
 under Install > click Install Software prerequisites…
Below are the items that will be installed as prerequsites for SharePoint 2010, if any of these fail, you MUST correct it before moving forward even though the installation may allow you to continue.
Click next then accept the licence agreement.
now you have installed the SharePoint Prerequisites successfully.
        3. Installing the SharePoint Server:
Back to the SharePoint 2010 Installation wizard, click the “Install SharePoint Server” link. The launched wizard requires the product key.
Provide one if you have it or simply use the trail key offered by Microsoft, and click continue.
Then, accept the terms of the licence agreement.
Personally, i  always choose Server Farm, because I want the extensibility  to add Servers and Roles Later on. So in this Instance I choose “Server Farm” and continue. But if you are  in your  lab environment and this is your first time installing Sharepoint you ca choose “Standalone”.
you can choose complete if you want to add more servers later on or you can simply choose Stand alone if you’re planning on using SQL server express edition
click install now.
Once the installation is complete, the Configuration of the Farm Begins once you click close and the check box is enabled.
          4. configuring the Farm:
When the installation of the SharePoint files is finished you are asked to continue with the SharePoint Products Configuration Wizard.
As part of the configuration, a few services have to be stopped and restarted.
Step 2 on Configuration wizard click “Yes” to start IIS and SharePoint Admin, Timer service.
If you chose “standalone” the the configuration is over as far as you’re concerned. if not then you have to either create a new farm(If this is the first server) or choose to connect to an existing farm.
click next.
we are almost done we only have 2 steps to go.

Fill out the screen as shown in Figure below. For “Database server,” this is the name of the
local VM you chose earlier. For “Database name,” I always recommend the default for the
sake of simplicity. “Username” is the sp_farm account created earlier. The account is just a
regular domain user that SharePoint will elevate permissions for as necessary. This account
will be one of the most important accounts in your farm. The Central Administration application
pool and the SharePoint timer service will both use this account. Also, it will be the
database owner (DBO) of all of your SharePoint databases. Click Next.

Enter a farm passphrase and confirm it. The passphrase you use here must be complex, and
you must remember it. Click Next.

Here you will get a random port number to begin withs. and here is where you will choose NTLM or Kerberos as your authentication provider.

click next and it is over

After about 4 minutes, you get the Configuration Successful screen. Hooray! click finish and Voila 🙂 you are about to finally create your first site collection.

5. creating a web app:

When you click “Finish” to close the wizard, the Central Administration Site is opening, and you are prompted for credentials.

Another page let you choose between configuring your farm yourself or by using a wizard.

When this choice is made, you display for the first time the brand new Welcome Page of SharePoint 2010 Central Administration.

now in the first section the Application Management section, click the Manage web applications link.

On the “Manage Web Application” page click the “New” menu entry then click “New Web Application”:

In the Create New Web Application dialog, select Create A New IIS Web Site and type SP2010Dev in the Name field. Accept the defaults for all other settings, and then click OK at the bottom of the page to create the web application.

After the new web application has been created, a dialog confirming success appears, as shown. Click OK to close the dialog.

You can go to IIS to see the new IIS Web site.

6.Creating a Site Collection:

The next step in the site provisioning hierarchy is the site collection

From the Central Administration Home Page, click on “Create site collections” in order to proceed to the creation of your first SharePoint 2010 Site Collection.

In the Web Application drop-down, ensure that the SP2010Dev web application is selected. (This will appear as http://<servername&gt;:<portNumber>.)Then  type SharePoint 2010 Demo as the title, and then select Blank Site as the site template. Add an appropriate username in the Primary Site Collection Administrator box. Generally, this will be the username you use to log in to the server that
provides full administrative privileges on all sites within the site collection.
Finally Click OK to complete the process. A confirmation message will be displayed when
the process has completed. Take note of the URL that is displayed for our new site
collection, because you’ll need it later on.

Although we’ve set out to create a site collection, we’ve also selected a site template and named our web site. Each site collection must have at least one root site.

To achieve this, select the Select Template Later option in the Custom tab of the Template
Selection section, as shown in figure above

7.Creating a Site:

Connect to the URL of the site collection that we created earlier.

In the upper-left corner of the page, click the Site Actions menu, and then select New Site:

The Create dialog displays a number of different templates from which we can choose when creating our new site. For the purposes of our demonstration, select Team Site and type the Title as Team Site and the URL as TeamSite, as shown:

Click the Create button to provision the new site.

When clicking on this site link, you can display your first SharePoint 2010 site.

Our new site is created as a child of our site collection root site. We can add more child sites to our team site, allowing us to build a hierarchy of sites all contained within the same site collection. Next to the Site Actions button is a folder icon, and by clicking this we can view a navigation control that shows where we are within our site collection:

Well Done !! 🙂