Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

SharePoint upgrade Web Site mode

2025-04-14 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >

Share

Shulou(Shulou.com)06/01 Report--

In daily SharePoint operations or upgrades, you often encounter the need to upgrade the site mode. In fact, when I encountered this problem, I encountered it when upgrading from SP13 to SP16, so I shared it with you today.

The first thing to know is that SharePoint Server 2016 does not support SharePoint 2010 mode (compatibility level 14) site collections in SharePoint 2016 product design. Any site collection in this mode prevents the content database from connecting to the SharePoint Server 2016 farm.

This means we have to upgrade all SharePoint 2010 mode sites to 2013 mode (compatibility level 15) on our existing 2013 farm, and then install the database on our new SharePoint 2016 farm.

Now let's talk about how to upgrade.

First, we'll look at which web sites are still using SP2010 mode, we'll open SharePoint Power Shell on SP13 server

enter the following command

Get-SPSite -Limit All | ? { $_.CompatibilityLevel -eq 14 }

As shown above, this command directly lists all sites in either current site mode or SharePoint 2010 mode (compatibility level 14).

If you want to search against the content database, use the following command

Get-SPSite -ContentDatabase -Limit All | ? { $_.CompatibilityLevel -eq 14 }

Well, with the above command we can see which databases are still compatible with 14 mode, so we will upgrade them.

Before upgrading, make sure that the running account has the following permissions:

Ensure that the account used for the attached database is a member of the db_owner fixed database role for the content database you want to upgrade.

Ensure that the account used to create the Web application is a member of the Farm administrators group on the SharePoint Central Administration website.

If you want to force all web sites to upgrade at once, use the following command

Get-SPSite -limit all |where {$_.CompatibilityLevel -eq '14'} | where {$_.RootWeb.WebTemplateId -eq 21} | upgrade-spsite -versionupgrade

Note: forced site upgrades may not be successful for all sites, so we can do this by upgrading a single site as described below or by upgrading on a graphical interface.

For a single upgrade of a site, use the following command

Upgrade-SPSite https://sharepoint.contoso.com/site -VersionUpgrade -Unthrottled

The site address here is based on the address listed in the above picture

From the figure below we can see that we upgraded the personal site named jzhang site, then we re-look at the pattern 14 site, there is no such site.

Here's a look at the graphical interface upgrade site

Open the site that needs to be upgraded. At first glance, this interface has the UI style of Microsoft 2010 platform, which is almost the same as the web interface design style of Exchange Lync.

Select Site Settings in Site Operations

Select Site Collection Upgrade under Site Collection Management.

SP16 personal site after upgrading, at least the style is such a. (Please ignore the photos, sorry everyone!)

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Database

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report