Wednesday, November 28, 2012

Upgrade SharePoint 2007 UI (look and feel) to SharePoint 2010


You can upgrade the look and feel of your site collection or specific site by following below steps:

1- From Site Actions -> Site Settings
2- Under Site Collection Administration
3- Select Visual Upgrade
 
You can choose Update All Sites option to update the look and feel for all the sites available in that site collection.

 Using Powershell

To perform the Visual upgrade, navigate to Site Actions / Visual Upgrade. You can also user PowerShell script to perform visual upgrade to all sites and sub sites in site collection. Script is given below. You need to change the database in the given script name according to your environment.
 
$db = Get-SPContentDatabase WSS_Content_Intranet

$db.Sites | Get-SPWeb -limit all | ForEach-Object {

$_.UIversion = 4; $_.UIVersionConfigurationEnabled = $false;

$_.update()
}
 
============================================================================
$SPwebApp = Get-SPWebApplication "http://abc.com"
  
    foreach ($SPsite in $SPwebApp.Sites)
    {
       foreach($SPweb in $SPsite.AllWebs)
        {
          
           $SPweb.UIVersion = 4  #set it to 3 if you want SharePoint 2007 look and feel
       $SPweb.Update()
    write-host $spweb.url
        }
    }
read-host

===========================================================================
Or you can use the SPSite's VisualUpgradeWebs() method:
 
$webapp = Get-SPWebApplication -app-URL>
foreach ($site in $webapp.sites)
{
   $site.VisualUpgradeWebs()
}
 ===================================================================

$webapp = Get-SPWebApplication http://sitename
foreach ($s in $webapp.sites)
{$s.VisualUpgradeWebs() }
 

No comments:

Post a Comment