Thursday, 19 January 2012

create a Approval Content for the Sharepoint Custom List Items 2010

Hi, let see how to create a Approval Content for the Sharepoint Custom List Items 2010

Step 1: Open the Sharepoint site eg:http://sharepoint2010

Step 2: Goto the the Site Actions ->More Options-> create a custom list




Step 3:Once you create a custom list on the Ribbon goto to List settings and then click Versioning Settings



Tuesday, 17 January 2012

deploy the SharePoint 2010 solution using Powershell


Now, let see how to deploy the SharePoint 2010 solution using Powershell

Step1:  Start->All Programs->MicrosoftSharepoint2010Products->open Sharepoint2010Managementshell

Type the command

Step2:   Add-SPSolution                C:\SharePoint2010Solution.wsp”

Step3:   Install-SPSolution –Identity SharePoint2010Solution.wsp –WebApplication http://myserver –GACDeployment.

If you are using Sandbox Solution,

Step4: Install-SPUserSolution –Identity SharePoint2010Solution.wsp     –WebApplication http://myserver  –GACDeployment.

For Updating the Sharepoint 2010 Solution type the following commands

Step5: Update-SPSolution –Identity SharePoint2010Solution.wsp –LiteralPath “C:\SharePoint2010Solution.wsp” –GacDeployment

For retract and remove a solution, type the following commands:

Step 6: Uninstall-SPSolution –Identity MySharePointSolution.wsp –WebApplication    http://myserver
Step7: Remove-SPSolution–Identity MySharePointSolution.wsp

Monday, 16 January 2012

Backup and Restore in SharePoint 2010 using PowerShell

Backup a Site collection with PowerShell command
In SharePoint 2010, PowerShell command Backup-SPSite is used for taking backup. you can get details of the command from the msdn link. The following command will backup the site collection ‘http://myserver’.

Backup-SPSite -Identity http://myserver -Path "c:\backup\file.bak"
Restore a Site Collection with PowerShell command
To restore site collection you’ll use the following command. Use –Force if you want to overwrite the existing site collection

Restore-SPSite -Identity http://myserver -Path "c:\backup\file.bak"