Thursday, February 2, 2012

Sharepoint Visual Upgrade

                    
To upgrade all sitecollections in a webapplication, use the below script

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

To upgrade all subsites in a sitecollections , use the below script

$site = Get-SPSite
http://siteURL/
 foreach ($web in $site.AllWebs){$web.UIVersion = 4;$web.Update();}

To Check the upgrade status for a site, use the below script.


$sc = Get-SPSite
http://siteurl ; $sc.GetVisualReport()

No comments:

Post a Comment