Tip 39: Set Visual Upgrade Back to Previous Version Part Deux
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?
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!