In order to rename a Site collection in SharePoint 2010 you need to backup the site first and restore it on an new Site collection.
To do that you can use the following PowerShell :
Add-PSSnapin Microsoft.SharePoint.PowerShell -ErrorAction SilentlyContinue  
  
$sourceURL = Read-Host “Enter the Source Site Collection URL:” 
  
$targetURL = Read-Host “Enter the Destination Site Collection URL” 
  
$backupPath = Read-Host “Enter the Backup File name & location (E.g. c:\temp\Source.bak):” 
  
Backup-SPSite $sourceURL -Path $backupPath -force
  
Remove-SPSite -Identity $sourceURL -Confirm:$false
  
Restore-SPSite $targetURL -Path $backupPath -Confirm:$false
  
Remove-Item $backupPath
  
write-host "Process Completed!"
 
 
Aucun commentaire :
Enregistrer un commentaire