Erreur Restore-SPSite

Symptôme :

Vous voulez restaurer une collection de site en utilisant la cmdlet Restore-SPSite ou bien via la Centrale Admin. Vous recevez l’erreur suivante :
Restore-SPSite : The operation that you are attempting to perform cannot be completed successfully.  No content databases in the web application were available to store your site collection.  The existing content databases may have reached the maximum number of site collections, or be set to read-only, or be offline, or may already contain a copy of this site collection.  Create another content database for the Web application and then try the operation again.
Cela arrive quand vous restaurez pour la énième fois dans la même Base de Contenue :
Solution :
#1 Créer une nouvelle Base de Contenue pour y héberger la collection de site (solution peu pratique dans un environnement de production que l’on souhaite maîtriser)
#2 Aller dans les « Timer job definition« , et exécuter le job « Gradual Site Delete » de la Web Application en question, puis relancer votre commande Restore-SPSite
Publié dans SharePoint | Laisser un commentaire

Farm Warmup

Un script permettant d’effectuer un warm up d’une ferme SharePoint 2010.

L’idée est d’appeler tous les sites et sous sites de la ferme afin de charger les DLL et les pages en vue d’accélérer les ouvertures de pages pour premiers utilisateurs.

If ((Get-PSSnapin Microsoft.SharePoint.PowerShell -ErrorAction SilentlyContinue) -eq $null)

{

Add-PsSnapin Microsoft.SharePoint.PowerShell

}
Function Get-WebPage([string]$url)
{
    $wc = new-object net.webclient;
    $wc.credentials = [System.Net.CredentialCache]::DefaultCredentials;
    $pageContents = $wc.DownloadString($url);
    $wc.Dispose();
    Return $pageContents;
}
Write-Host « Warmup Starting »
$WebApps = Get-SPWebApplication
ForEach ($Webapp in $WebApps)
{
    $Sites = $WebApp.sites
    ForEach ($Site in $Sites)
    {
        $SiteUrl = $Site.Url;
        Get-SPSite -Identity $siteurl | Get-SPWeb | ForEach-Object { $WebUrl = $_.url ; Write-Host $WebUrl ; $html=get-         webpage -url $WebUrl}
    }
}
Write-Host « Warmup End »
Publié dans SharePoint | Laisser un commentaire

My Links – SP2010

How to Create Multilingual Webpart in SharePoint 2010?
How to use ULS in SharePoint 2010 for Custom Code Exception Logging?
How to Install Language Pack in SharePoint 2010?
Architecture d’Enterprise Search (SP2007)
What is Document Sets in SharePoint 2010?
Adding Additional Farm Admins to an Existing Farm
Creating a Silverlight application for SharePoint in 10 smalls steps
SharePoint 2010 Web Parts by License Type
Configuring a SharePoint website to allow SSL connections (HTTPS, Forms authentication)
Understanding Managed Metadata in SharePoint 2010: its Impact on Taxonomy, Navigation and Search
Adding Managed Metadata Fields to SharePoint Publishing Pages
How to: Create a Simple SharePoint 2010 People Directory
How to Create a Custom Page Layout for Publishing Sites Using Visual Studio 2010
Using the Silverlight Object Model
Delegate Control – Modification dynamique de master page
Les documents set – Explication théorique de l’utilisation des documents set
Présentation des workflows – Nouveautés apportées par SharePoint 2010 en termes de workflow
Les SandBoxed Solutions – Tout ce qu’il faut savoir sur les solutions « SandBoxed » de SharePoint 2010
[SP2010] InfoPath – Demande de congé
Installation du iFilter PDF
SharePoint Server 2010 : Indexer les documents PDF via le ifilter d’adobe
How to Create an InfoPath Form to Auto Populate Data in SharePoint 2010
SharePoint 2010 Lists Improvements – List Lookups and Relationships
Working with Large Lists in SharePoint 2010 – List Throttling
Création de votre premier site SharePoint 2010
Installation d’une ferme simple
SharePoint 2007 vs SharePoint 2010 Comparison

Publié dans SharePoint | Un commentaire