Chad's Eclectic Tips and Tricks

Tips some days, not everyday, mostly Windows & SharePoint from Chad Schultz - Premier Field Engineer

Tip 39: Set Visual Upgrade Back to Previous Version Part Deux

Tip 39: Set Visual Upgrade Back to Previous Version Part Deux

  • Comments 2
  • Likes

This tip is for SharePoint Foundation 2010, SharePoint Server 2010 and Search Server 2010 Express.

So you have your heart set on the WSS 3.0/MOSS 2007 look; I know, how could you not just looooove it? But have just installed a fresh new SharePoint 2010 farm. Or, you have visual upgraded your sites after an upgrade from WSS 3.0/MOSS 2007 to SharePoint 2010 and want that 2007 look and feel. So how can you go back?

pubwebv3

As it turns out, it’s easy with the power of PowerShell. The scriptlets below will show you how you can switch from version to version for every site in a site collection and to switch a single site.

To change the look and feel for every site in a site collection to WSS 3.0/MOSS 2007, use the following example code:

$SiteCollection=Get-SPsite http://SiteCollection
foreach($SPWeb in $SiteCollection.AllWebs){$SPWeb.UIversion=3;$SPWeb.update();}

To change the look and feel for every site in a site collection to SharePoint 2010, use the following example code:

$SiteCollection=Get-SPsite http://SiteCollection
foreach($SPWeb in $SiteCollection.AllWebs){$SPWeb.UIversion=4;$SPWeb.update();}

To change the look and feel for 1 site in a site collection to WSS 3.0/MOSS 2007, use the following example code:

$SPWeb=Get-SPWeb http://Site

$SPWeb.UIversion=3;$SPWeb.Update();

To change the look and feel for 1 site in a site collection to SharePoint 2010, use the following example code:

$SPWeb=Get-SPWeb http://Site

$SPWeb.UIversion=4;$SPWeb.Update();

 

So now you can go back and forth all day basking in your new found Visual Upgrade power! Next, SharePoint 2010 with laser beams!

Comments
  • After 2 years I had to go back to my own blog post and change the visual upgrade on an upgrade from 2007 to 2010 and the yellow bar:

    "Visual Upgrade: This site has been set to preview the latest SharePoint features and interface. Changing the content while in preview mode may adversely affect its appearance. View or modify this site's Visual Upgrade settings."

    If you want to get rid of the yellow bar on each site run:

    $SiteCollection=Get-SPsite http://SiteCollection

    foreach($SPWeb in $SiteCollection.AllWebs){$web.UIVersionConfigurationEnabled=$false=4;$SPWeb.update();}

  • Yet another way to visually upgrade all web sites in a web application:

    $webapp = Get-SPWebApplication http://webapplicationurl

    foreach ($s in $webapp.sites)

    {$s.VisualUpgradeWebs() }

Your comment has been posted.   Close
Thank you, your comment requires moderation so it may take a while to appear.   Close
Leave a Comment