Thursday, July 7, 2011

Visual Upgrade in SharePoint 2010

There so many ways to Visual Upgrade Migrated SharePoint Site.
One of this is run power shell script from SharePoint 2010 Management Shell.

All Site Collection Upgrade under Single Web Application as below command
    $webapp = Get-SPWebApplication http://UIVersion3WebApps/
    foreach ($s in $webapp.sites)
    {$s.VisualUpgradeWebs() }


Site Collection Upgrade including All Sub Webs as below command
    $site = Get-SPSite http://UIVersion3SiteCollection/
    foreach ($web in $site.AllWebs){$web.UIVersion = 4;$web.Update();}

Only Site Collection Web Upgrade without All Sub Webs as below command
    $site = Get-SPSite http://UIVersion3SiteCollection/
    $site.VisualUpgradeWebs()

Only Single Web Upgrade as below command
    $web = Get-SPWeb http://UIVersion3SiteCollection/site
    $web.UIVersion = 4;
    $web.Update();


Happy Upgrading !!!

No comments:

Post a Comment