14 August, 2012

Restore a Web application in SharePoint Server 2010 using Windows PowerShell

You can use Windows PowerShell to restore a Web application manually or as part of a script that can be run at scheduled intervals.

To restore a Web application by using Windows PowerShell
1. On the Start menu, click All Programs.
2. Click Microsoft SharePoint 2010 Products.
3. Click SharePoint 2010 Management Shell.
4. At the Windows PowerShell command prompt, type the following command:
Restore-SPFarm -Directory (BackupFolderName) -RestoreMethod Overwrite -Item (WebApplicationName) [-BackupId (GUID)] [-Verbose]

- BackupFolderName, is the full path to the folder you use for backup files.
- WebApplicationNam, is the name of the Web application that was backed up.
- GUID, is the identifier of the back up to use for the restore operation.

If you do not specify the value of the BackupID parameter, the most recent backup will be used. You cannot restore a Web application by using a configuration-only backup. You can view the backups for the farm by typing the following:
Get-SPBackupHistory -Directory -ShowBackup

SharePoint 2013 Downloads and Links

As we all know Microsoft released public beta for SharePoint 2013 recently. Here are below some good links to download all related stuffs to SharePoint 2013.

Hardware and software requirements for SharePoint 2013 - Click here

Download Microsoft SharePoint Server 2013 Preview: Click here

Product key for the above: 6RNT8-XV26M-GWH36-VMGQH-94MMH

Download SharePoint Foundation 2013 Preview: Click here

Download SharePoint Designer 2013: Click here

SharePoint 2013: presentation: IT pro training (PPTX): Click here

Download ebook for Deployment guide for SharePoint 2013 Preview: Click here

SharePoint 2013 training for developers (Videos): Click here

Download SharePoint 2013 training for IT pros (Videos): Click here

What changes from SharePoint 2010 to SharePoint 2013 preview: Click here

What's new in social computing in SharePoint Server 2013 Preview: Click here

SharePoint 2013 Preview installation and configuration guide: Click here

Capabilities and features in SharePoint 2013 (Video): Click here

Physical architecture and logical architecture of SharePoint 2013: Click here

API set in SharePoint 2013: Click hereSharePoint 2013 video tutorial link: Click here

Microsoft Office Professional Plus 2013 Preview: Click here

SharePoint 2013 forum for IT Professional and Developers: Click here

Microsoft SharePoint 2013 forum for IT Professional: Click here

Microsoft SharePoint 2013 forum for Developers: Click here

13 August, 2012

Hardware and software requirements for SharePoint 2013 Preview

In this article we will discuss about the Hardware and Software requirements for SharePoint 2013 preview.

SharePoint 2013 Preview can be installed in different scenarios like single server with built-in database installations, single-server farm installations, and multiple-server farm installations.

Hardware Requirement:

Single server with a built-in database or single server that uses SQL Server:

Processor: 64-bit, 4 cores
Hard Disk space: 80 GB

Single server with a built-in database or single server that uses SQL Server:

RAM: 24 GB
Processor: 64-bit, 4 cores
Hard Disk space: 80 GB

Web server or application server in a three-tier farm:

RAM: 12 GB
Processor: 64-bit, 4 cores
Hard Disk space: 80 GB

Database servers:

RAM: 8 GB for small deployments and 16 GB for Medium deployment
Processor: 64-bit, 4 cores for small deployments and 64-bit, 8 cores for medium deployments
Hard Disk space: 80 GB

Database Requirement mainly: Microsoft SQL Server 2008 R2 (Service Pack 1) 64bit or Microsoft SQL Server 2012 (64bit)

Software requirements:

Minimum requirements for a database server in a farm:

- 64-bit edition of Microsoft SQL Server 2012 or 64-bit edition of SQL Server 2008 R2 Service Pack 1

- 64-bit edition of Windows Server 2008 R2 Service Pack 1 (SP1) Standard, Enterprise, or Datacenter or the 64-bit edition of Windows Server 2012 Release Candidate Standard or Datacenter

- Microsoft .NET Framework version 4.5 Release Candidate (RC)

Minimum requirements for a single server with built-in database:

- Microsoft SQL Server 2008 R2 SP1 - Express Edition

- 64-bit edition of Windows Server 2008 R2 Service Pack 1 (SP1) Standard, Enterprise, or Datacenter or the 64-bit edition of Windows Server 2012 Release Candidate Standard or Datacenter

- Microsoft .NET Framework version 4.5 Release Candidate (RC)

Minimum requirements for front-end web servers and application servers in a farm:

- 64-bit edition of Windows Server 2008 R2 Service Pack 1 (SP1) Standard, Enterprise, or Datacenter or the 64-bit edition of Windows Server 2012 Release Candidate Standard or Datacenter.

- SQL Server 2008 R2 SP1 Native Client

Check the below link for more information on it:

SharePoint 2010 Object Model Classes

Microsoft SharePoint Server 2010 offers a highly structured server-side object model that makes it easy to access objects that represent the various aspects of a SharePoint Web site. From higher-level objects, you can drill down through the object hierarchy to obtain the object that contains the members you need to use in your code. Reference

Here there are some SharePoint Object model classes.

In the top SPFarm class is there.

SPFarm: This reference the entire SharePoint Server Farm.
By using this you can create a new farm or you can connect to a existing a existing farm.

Namespace: Microsoft.SharePoint.Administration

SPServer: By using this class you can browse through the collections of servers belongs to the Farm.

SPSite: Represent a Site collection.

SPWeb: Represent a web site.

SPUserToken: The SPUserToken class represents a token for a valid SharePoint user.

SPList: SPList corresponds to a single list instance, whether that is a list of items or a document library.

SPListItem: This defines a reference to a specific item of a list.

SPDocumentLibrary: This type represents a document library.

SPFile: This class is used to enumerate the files contained in a document library.

SPPrincipal: This class is the parent class for SPGroup and SPUser.

SPControl: This class we need while developing web controls or Web Parts.

SPContext: This is a very useful class and it has some direct methods to access useful information about current requests.

Different DLLs for Client Object Model SharePoint

There are different client object model like managed client object model, ECMAScript object model, Silverlight client object model etc. To work with these object models SharePoint provides certain classes which exists inside some dlls. These dlls are very leightweight as compared to SharePoint server object model. So it is a good idea to know about the dlls used and there locations.

Managed Object Model:

Dlls needed:

- Microsoft.SharePoint.Client
- Microsoft.SharePoint.Client.Runtime

Location: C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\ISAPI (If SharePoint installation done in C drive)

ECMAScript Object Model:

JS needed:

- SP.js , SP.Core.js , SP.Ribbon.js , and SP.Runtime.js .

Location: C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\LAYOUTS (If SharePoint installation done in C )

Silverlight Object Model:

Dlls needed:

- Microsoft.SharePoint.Client.Silverlight
- Microsoft.SharePoint.Client.Silverlight.Runtime

Location: C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\LAYOUTS\ClientBin (If SharePoint installation done in C drive)drive)

Client Object Model SharePoint 2010 Details:

MOSS 2007 provides Web services which are difficult to use and always returns XML documents and XML data needs to be parsed manually.

These are simple APIs to add, retrieve, update and manage data in SharePoint. There are some tasks you can not do using client object model like creating a web application.

These classes are very easy to use and prefix sp is removed in the naming of client object model classes. For example in Server object model if the class is SPList now in client object model the class name is List.

Behind the schene client object model interact with some wcf services to communicate with SharePoint.

To work with client object model you need to refer 2 dlls which can be found in the following locations, refer to Managed Object Model, as discussed above:

C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\ISAPI

The 2 dlls are:

- Microsoft.SharePoint.Client.dll
- Microsoft.SharePoint.Client.Runtime.dll

Here is an example to create a list of type Announcement list by using SharePoint 2010 client object model.

using (ClientContext context = new ClientContext(http://Amardeep:8787/sites/Training))

{  //Create a new list

ListCreationInformation listCreationInformation = new ListCreationInformation();

listCreationInformation.Title = "My Announcements List";

listCreationInformation.Description += "Here is my list created by client object midel";

listCreationInformation.TemplateType = (int)ListTemplateType.Announcements;

listCreationInformation.QuickLaunchOption = Microsoft.SharePoint.Client.QuickLaunchOptions.On;

List list = context.Web.Lists.Add(listCreationInformation);


More Details: Refer to the link.

12 August, 2012

SharePoint Server 2013: Boosting Performance and Support for Real Business Solutions

The Preview of SharePoint Server 2013, which debuted for customer evaluation at the Worldwide Partner Conference in Toronto in mid-July, suggests this release will offer extraordinary power for business information-gathering and decision-making. Beyond its widely touted features, such as streamlined user and site experiences and enhanced collaboration (including social networking), SharePoint Server 2013 provides strategic improvements in support of bottom-line business essentials—workflow, business intelligence, business connectivity services, mobile productivity, eDiscovery and more.

Read on for highlights of a few features we think will be important to SharePoint enthusiasts looking for new ways to extend the value of their SharePoint deployment.

SharePoint Server 2013 offers a new workflow service called Windows Azure Workflow. It is built on the Windows Workflow Foundation components of.NET Framework 4.5. The SharePoint 2010 Workflow platform is still the default in SharePoint Server 2013, and any workflows created in it will continue to work in SharePoint Server 2013.

However, those who choose to install and configure the new workflow service will benefit from enterprise-grade features including:
  • Activity / Workflow Artifact Management
  • Elastic Scale
  • Fully Declarative Authoring
  • High Density and Multi-Tenancy
  • Instance Management
  • Managed Service Reliability
  • REST and Service Bus Messaging
  • Tracking and Monitoring

Business Intelligence
In SharePoint Server 2013, the platform’s business intelligence (BI) tools have been fine-tuned for better performance and integration with business tools including the Microsoft Office productivity suite. Features include:

  • The Business Intelligence Center site template has been updated and streamlined for ease of use.
  • PerformancePoint Services now supports the iPad with BI viewing and interaction taking place thorough the Safari browser.
  • Users can copy entire PerformancePoint dashboards and dependencies.
  • An enhanced PerformancePoint UI facilitates filter viewing and management.
  • Users working with Excel Services reports that use SQL Server Analysis Services data or PowerPivot data enjoy extended functionality.
  • Excel Services now supports calculated measures and calculated members.
  • Timelines in Excel Services now behave in the same manner as if they were viewed in the Excel client.

Business Connectivity Services
With the debut of SharePoint Server 2013, Microsoft has built upon the Business Connectivity Services model introduced with SharePoint 2010. This powerful feature, which enables SharePoint to access information from external data systems such as SAP, ERP, CRM and other data-driven applications, previously supported installation and use of external content types only at the farm level, which presented complications for use of BCS in many situations.
In SharePoint 2013, external content types can be scoped through “apps,” self-contained, easy-to-use bits of functionality designed for end users. Companies can develop apps that access external data from a variety of sources but do not change or affect the code on any underlying system or platform.

Microsoft has also added support for Open Data Protocol (OData) Business Data Connectivity connections in addition to connections for .NET, SQL Server and WCF. Previously, SharePoint was an OData provider, but now users can connect to an external data source using OData. (Visual Studio 2010 will generate all the Business Connectivity Services operations for all OData operations.)
Mobile Productivity
SharePoint Server 2013 now features optimized viewing capabilities and productivity enhancements across various mobile platforms (Windows; iOS; Android). New features to support mobile devices include:
  • Updated browser UI: A lightweight Contemporary view now joins the previously available Classic and Full-Screen UI browser interfaces.

  • Flexible site rendering: Rather than the single default mobile view used in SharePoint 2010, SharePoint sites can be optimized for different mobile devices and platforms.
  • Geo-location: SharePoint Server 2013 supports a geo-location field type that enables lists to be geo-aware (among other capabilities).
  • SharePoint Server 2013 supports push notifications (to applications that support them) of site updates, such as the addition of a list or an update to an item. Notifications can occur through the Microsoft Push Notification Service or platform-specific notification services.
With SharePoint 2013, Microsoft is introducing a new eDiscovery solution. Key new features include:
  • Site-based management and collaboration for eDiscovery cases with statistical tracking. Each case has its own site with an “eDiscovery Set”—the universe of search resources and their search filters (as well as action options).
  • All sites are accessed through a common portal (the eDiscovery Center) for search, preservation, query and export of relevant materials. Search results are displayed based on the user’s permissions.
  • Multiple Exchange mailboxes, SharePoint sites/farms and file shares can be associated with cases and then preserved in their entirety or queried to refine the pool of preserved content.
  • Content holds include a new “in-place hold,” a feature that enables users to continue working with the preserved content from Exchange mailboxes and SharePoint sites. Users can change the content, but a content snapshot is recorded at the time of preservation and stays in hold, even if the user deletes the content. All held material is indexed in a preservation hold library visible only to Administrators and other authorized individuals.
  • Query-building enables authorized users to define a scope for searching held resources, with additional filtering by message type or file type. Users can then view statistics about the items, preview results (documents; lists; pages; Exchange objects) and export (into the Electronic Data Reference Model format) the items for separate review, if desired.

Records Management and Compliance
SharePoint Server 2013’s records management and compliance features provide more security for your business. The most significant new feature is site-based retention. Any retention policies created in SharePoint Server 2013 apply to SharePoint project sites and any Exchange Server team mailboxes associated with those sites.

Better Search Architecture and Performance
To provide more powerful search capabilities, Microsoft has integrated more data from Microsoft Research and Bing, implemented the latest version of FAST technology, and incorporated new, extensible index, query and crawl frameworks.

All components and databases related to the search operation reside on application servers and database servers, respectively. No search components are hosted on Web servers.

For more details or to download the SharePoint 2013 Server Preview, visit: http://technet.microsoft.com/en-us/sharepoint/fp142374.aspx