Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

I have a SC backup, but when trying to restore it on my test environment with PowerShell, got the following error: SharePoint server version mismatch. SharePoint versions on both servers should match. [In my case version should be 4190 to continue restore].

It is possible to determine Sharepoint version used during backup creation?

Restoring with PowerShell (Restore-SPSite cmdlet)

Thanks.

share|improve this question
1  
If you can access the farm where the backup came from, you can look up the version. If not, I don't believe there is a (documented) way to extract the version from the site collection backup file itself –  shufler Apr 11 '12 at 15:46
add comment

2 Answers

To check which SharePoint-related installed apps are in your server - use the following PowerShell code to list out the apps & their versions:

$fooApps = Get-WmiObject -Class win32_Product  | where {$_.Name -like "*SharePoint*"} 
$fooApps | Sort -Property Name | ft -AutoSize
share|improve this answer
add comment

You could also use Todd Klindt's script as a basis (use minor instead of major version?)

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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