Friday, June 15, 2012

Site collection basics SharePoint 2010

Every single min we talks about site collections as they are the heart core section of SharePoint. There are so many things that we usually do on site collections that consist of changing of site collection name, creation, deletion, change site quota, activating some features…… n so many things



How to delete a site collection in SharePoint 2010?
§ Open the Central Administration
§ Application Management
§ Site collections
§ Delete a site collection
§ Select the appropriate site link
§ Click OK

How to create a site collection in SharePoint 2010?
§ Open the Central Administration
§ Application Management
§ Site collections
§ Create site collections
§ Select the web application on which you wants to create a site collection
§ Enter the name of the site and URL as per your requirements
§ Select the template
§ Enter the primary and secondary admins
§ Select the storage quota that you want to assign
§ Click Create

How to Change site collection administrators?
§ Open the Central Administration
§ Application Management
§ Site collections
§ Change site collection administrators
§ Select the site collection from the dropdown list for which you want to change the admins
§ Change the admins as per their ID's
§ Click OK

How to change the quota for site collection?
§ Open the Central Administration
§ Application Management
§ Site collections
§ Configure quotas and locks
§ Select the appropriate site collection from the dropdown
§ Assign a new quota as per your requirements
§ Click ok

How to View all site collections?
§ Open the Central Administration
§ Application Management
§ Site collections
§ Open the Central Administration
§ Application Management
§ View all site collections
§ Select the correct web applications from the dropdown
§ You will see the list of site collections underneath

How to change the name of the site collection?
§ Open the site collection on which you are working
§ Site actions
§ Site settings
§ Under Look and Feel
§ You will see a link named as "Title, description, and icon"
§ Change the name in the title field
§ Click OK

How to add a link in quick launch?
§ Open the site collection on which you are working
§ Site actions
§ Site settings
§ Under Look and Feel
§ Navigation
§ You will see two sections here i.e. Global and Current navigation
§ If you want to add a link in quick launch then we need to select "Current Navigation"
§ Add Link
§ Enter the title and specific URL
§ Click OK twice

Note: If you want to add the site link in the top navigation section then you need to refer the Global navigation section.

Backup Restore in SharePoint 2010


Microsoft SharePoint 2010 has comes up with so many enhancements and backup restore is one of them. I will try my best here to cover the backup-restore based on GUI (Graphical User Interface), STSADM and Powershell so that you will be proficient enough to work on these mentioned methods independently.
Backup Operations
Backup operations are associated with:
· Site collection
· Subsite
· List and Document Libraries
How to take the backup of the site collection:
By using Central Administration
· Open the central administration
· Backup and Restore
· Granular Backup
· Perform a site collection backup
· Select the appropriate web application and site collection from the dropdown
· Provide the filename
· Start backup
· You will be redirected to _admin/sitebackuporexportstatus.aspx
· It shows the status ‘Operation initializing’
· It will take some time to complete the backup depending on the size of the site collection
· As soon as the backup completed then the status will change to ‘Operation Succeeded’
· That’s it and you are done... check the file location and you will see the backup file that you have specified in the above mentioned steps.
By using STSADM command
For site collection backup:
stsadm.exe -o backup -URL -filename [-overwrite]
By using Powershell command
Backup-SPSite -Identity http://SharePointBackuptesting/sites/AMOL2010 -Path
How to take the backup of the subsite
By using Central Administration
§ Open the central administration
§ Backup and restore
§ Granular backup
§ Export a site or list
§ Select the appropriate web application, site collection and subsite
§ Provide the filename
§ Select Export Security (If you want to include permissions)
§ Export Versions (by default ‘All Versions’ selected)
§ Start backup
§ You will be redirected to _admin/sitebackuporexportstatus.aspx
§ It will take some time to complete the backup depending on the size of the site collection
§ As soon as the backup completed then the status will change to ‘Operation Succeeded’
§ That’s it and you are done... check the file location and you will see the backup file that you have specified in the above mentioned steps.
By using STSADM command
stsadm.exe -o export -URL -filename
By using Powershell command
Export-SPWeb -Identity -Path -IncludeUserSecurity
How to take the backup of the List/Document Library
By using Central Administration
· Open the central administration
· Backup and restore
· Granular backup
· Export a site or list
· Select the appropriate web application, site collection and List/Document Library.
· Provide the filename
· Select Export Security (If you want to include permissions)
· Export Versions (by default ‘All Versions’ selected)
· Start backup
· You will be redirected to _admin/sitebackuporexportstatus.aspx
· It will take some time to complete the backup depending on the size of the site collection
· As soon as the backup completed then the status will change to ‘Operation Succeeded’
· That’s it and you are done... check the file location and you will see the backup file that you have specified in the above mentioned steps.
By using Powershell command
Export-SPWeb –Identity -Path -ItemURL “Lists/Tasks” –includeusersecurity

Webpart basics in SharePoint 2010


A Web Part is a modular unit of information that forms the basic building block of a Web Part Page. You can add Web Parts to Web Part zones in a Web Part Page and then customize the individual Web Parts to create a unique page for your site users.
Restore closed web parts?
· Open the sharepoint site
· Site actions
· Edit page
· Click on Insert
· Specify the location of the mouse cursor where you need to place that webpart
· Click on webpart
· It will open the web part gallery page
· Scroll down towards the bottom by means of categories section
· You will see a section named as “Closed webparts”
· As soon as you click on closed webpart then you will see a list in the right hand side
· Select the appropriate one which was closed and click on Add
· That’s it-webpart will be successfully restored back to the page where it exists before. J
How to delete a webpart?
· Open the page where the Web part is located.
· Select Edit Page from the Site Actions drop-down menu.
· Click the Web part to be deleted.
· Click the Web Part Tools tab on the Ribbon.
· Click the Delete Button, and then click Okay in the warning dialog.
How to add a webpart?
· Open the sharepoint site
· Site actions
· Edit page
· Click on Insert
· Specify the location of the mouse cursor where you need to place that webpart
· Click on webpart
· It will open the web part gallery page
· Select the appropriate webpart from the categories list
· Click on Add
· That’s it-you are done J
How to export a webpart in SharePoint 2010?
· Edit the webpart
· Under Advanced Settings look for Export option
· Change the option to Export All
· Save the webpart configuration and you have the option back in place now
· That’s it-you are done J