Revert a SharePoint 2010 site to the WSS3.0/MOSS2007 Look after Visual Upgrade

This question came up in one of my comments recently and I wanted to find out if it was even possible to reveert the look back of a SharePoint 2010 site that has been upgraded from WSS 3.0 or MOSS2007

Thanks to Corey Roth and a comment on his post about I found out the following:

“In SharePoint 2010, there is the concept of a UI Version and it has a value of 3 or 4.  When you upgrade your existing site, it will leave you at Version 3 which looks just like WSS3.  However, you have the capability to upgrade to the new SharePoint 2010 visualizations which is version 4.  If the administrators have the options enabled, you can change your UI version using the UI itself.  It provides the capability to run on Version 3 but get a preview of 4 and then ultimately they can convert to version 4 completely.  However, you may want to do this programmatically or you may want to revert back to version 3 after you have turned off preview mode.  “

So there are already two possible ways of doing it:

1. Using Code: (thanks to Corey Roth)

using (SPSite siteCollection = new SPSite(“http://server/site“))
{
    SPWeb site = siteCollection.OpenWeb()
    {
        site.UIVersion = 3;
        site.UIVersionConfigurationEnabled = true;
        site.Update();
    }
}

2. Using Powershell: (thanks to Tobias Zimmergren)

$site = Get-SPSite(“http://portal“)
$web = $site.OpenWeb()
$web.UIVersion = 3
$web.Update()
$web.Dispose()
$site.Dispose()

4 thoughts on “Revert a SharePoint 2010 site to the WSS3.0/MOSS2007 Look after Visual Upgrade

  1. Hi
    I mde an upgrade to 4 then I deceded to go back to 3. seems like some list template are missing, cause wile trying to load the page showing all items, Manage and custom contents. this brings up this error:
    0x8107058aFeature ’75a0fea7-ebe9-4501-8897-74c984588afa’ for list template ’7504′ is not installed in this farm. The operation could not be completed.
    can you help ?

    Merci

  2. where do I put the code? In the master page? In the individual pages on the site? and where in the pages does the code belong?

    I’m askinf because the sp site was upgraded from 2007 to 2010 with the visual upgrade turned on and I’m trying to revert to 2007 look and feel.

  3. I believe this code: $site = Get-SPSite(“http://portal“)
    $web = $site.OpenWeb()
    $web.UIVersion = 3
    $web.Update()
    $web.Dispose()
    $site.Dispose()

    need to be put into the powershell cmd line on the application/wfe server

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>