Saturday, February 22, 2014

Recover a Deleted Site Collection in SharePoint 2010 SP1 and above


Unfortunately, there is no user interface for restoring deleted site collections. Managing deleted site collections requires using PowerShell. SharePoint 2010 introduces 3 new PowerShell CmdLets for managing the Recycle Bin for site collections.
When users delete a site, they are presented with the following page:
image
As you can see from the message, the entire site including its contents, permissions are sent to recycle bin.
When you click Delete, you are prompted with another message box, which may be confusing:
image
Even though it says the site will be deleted permanently, it is not.
Hit OK.
If you are a PowerShell user, you can use the Remove-SPWeb cmdlet to delete the web instead of the UI. Just use the –Recycle parameter:
Remove-SPWeb http://site -Recycle
After the site is deleted, it will be available in the top-level site’s recycle bin to restore:
image
 
The easiest way to get a list of all the deleted site collections is to just call Get-SPDeleteSite without any parameters. In the following example, for brevity, I have formatted the output as a table and filtered the columns displayed. In the second sample, I have added a wildcard filter to the command that can be used to easily filter sites based on relative paths.

 
Once you have identified the site you want to restore, you call the Restore-SPDeletedSite. To restore one or more sites, it is easiest to just pipe the results from Get-SPDeletedSite. By default, the command will ask you to confirm the restore. To eliminate the confirmation, just add "Confirm:$true" to the end of the command.
 
 
 

Error: The report server installation is not initialized in SharePoint 2010 farm

Interesting problem whilst configuring SQL Server Reporting Services (SSRS) integration on the web front end in a new SharePoint 2010 farm
I’m using SharePoint Server 2010 fundation with Service Pack 2 and the Augest 13 CU applied. SQL Server 2008 R2 is the DB latest version. Using the Reporting Services Configuration Manager I’d configured Reporting Services on the server to point to the Reporting Services DB on the back-end database server and created the relevant virtual directories on the server. For the time being the service account is being used for the Reporting Services integration.
Next I’ve gone to Central Admin –> General Application Settings and selected Reporting Services Integration and successfully completed the configuration as you can see from the picture below.
The next step is usually to return to the General Application Settings page and select Set server defaults under Reporting Services but as soon as I did this I received the following error…
 
Resolution :
The tip was to return to Reporting Services Configuration Manager and click on Encryption Keys in the left menu and then delete the encrypted content.
 
and when I returned to the General Application Settings page and ran Set server defaults it now worked as expected and allowed me to maintain the default settings for Reporting Services

SharePoint 2010 Foundation + SQL Server Reporting Services Integrated mode installation issues

When trying to configure the SQL Reporting Services Add-in for SharePoint 2010 from Central Admin you might see the following error: