Wednesday, May 25, 2016

Reverting SharePoint 2010 UI to MOSS 2007 UI

There might be occasions we as developer or admin migrated SharePoint 2007 site collection to SharePoint 2010 and we leverage SharePoint visual upgrade feature to update the UI to 2010. There are two options,  We have preview mode to update and other one regular update. The later one update the UI permanently and you cant revert it back when your users doesn't like the new 2010 UI.

Solution: Fortunately there is power shell script that would let you to revert you to previous UI.

For site collection use the below PS

[code]$site = Get-SPSite("http://mysite/sites/siteCollName")
$web = $site.OpenWeb()
$web.Update()
$web.Dispose()[/code]

For sub site use the below PS
[code]$web = Get-SPWeb("http://mysite/sites/siteCollName/Subsite")
$web = $web.OpenWeb();
$web.Update()
$web.Dispose()[/code]

No comments:

Post a Comment