I did an update of SharePoint 2013 using December 2017 CU. In central admin I see this info:

Configuration database version: 15.0.4989.1001 
Status: Upgrade available

In Upgrade Status page I see that the upgrade was successful without errors.

However, using stsadm.exe -o localupgradestatus I get this:

    <status>Cannot Upgrade</status>

[4] content database(s) encountered.
[2] content database(s) still need upgrade or cannot be upgraded.
[250] site collection(s) are contained in the content databases.
[0] site collection(s) still need upgrade.
[33] other objects encountered, [1] of them still need upgrade or cannot be upgraded.

In one of the posts they suggest to run one or both of these commands:

psconfig.exe -cmd upgrade -inplace v2v -wait  (if you want to upgrade product version) 
psconfig.exe -cmd upgrade -inplace b2b -wait (if you want to apply SharePoint patch, such as SP1 or June CU) 

Which one do I run and are there any other steps or checks that I need to perform?

Also any idea why it cannot upgrade the other two content databases?

1 Answer 1


Try to run the below cmdlet to upgrade all content database that still needs upgrade

Get-SPContentDatabase | ?{$_.NeedsUpgrade -eq $true} | Upgrade-SPContentDatabase

For more details check Database running in compatibility range and upgrade recommended

Note: If your farm has been on a patch level lower than July 2015 CU and would like to go to a CU equal or higher than July 2015 CU, you should run the below cmdlet

PSConfig.exe -cmd upgrade -inplace b2b -wait -cmd applicationcontent -install -cmd installfeatures -cmd secureresources -cmd services -install

For more details check December 2017 CU for SharePoint 2013 product family is available for download

  • thanks for your answer. I ran the first code. Now it shows OK. Commented Dec 27, 2017 at 15:56

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.