6

What is the most reliable way to determine which version of SharePoint is installed? Whether it is WSS or MOSS. If MOSS, whether it is standard or enterprise.

I wonder if SharePoint API can help me find the edition of SharePoint installed!

1
  • Convert License Type is not available?
    – user13651
    Dec 14, 2012 at 20:57

5 Answers 5

3

I wrote about this some time ago on my blog.

Basically what you do is check for the availability of a feature that is present in MOSS that is not part of WSS.

Read the whole post for some of the problems we went through, but currently we have settled for the following code.

/// <summary> 
/// Method to find out if a SharePoint installation is MOSS or WSS 3.0 
/// </summary> 
public static bool IsMOSS() 
{ 
    SPFeatureDefinitionCollection features = SPContext.Current.Site.WebApplication.Farm.FeatureDefinitions; 
    if (features["OssNavigation"] != null && features["Publishing"] != null) 
        return true; 
    else 
        return false; 
}
2
  • Thats great but how'd you detect whether its MOSS standard installation or enterprise.
    – Faisal
    Feb 4, 2010 at 9:06
  • See Wictor's response below. Feb 10, 2010 at 10:47
2

To check if MOSS Enterprise is installed you could check the features of the Farm SPFarm.Local and FeatureDefinitions and see if the Premium Site Features Stapling is existing.
It has the name of PremiumSiteStapling and the feature id of code>A573867A-37CA-49dc-86B0-7D033A7ED2C8
.

0

An easy way is to look at the SQL server table called "dbo.Versions" in the "SharePoint_config" database.

You will find entries that shows the versions installed. As a general rule, if the version is 3.X only it means WSS only, versions 12.XX is MOSS (usually you will find MOSS and WSS as WSS is prerequisite to MOSS).

To know if it is Standard or enterprise version of MOSS, Go to the Central administration -> Operations-> Enable Enterprise features. This will show you whether it is standard or enterprise.

0

The easiest way IMHO is to run SPDiag.

The snapshot tab will give you all relevant data on servers, hardware and farm -including build number.

Microsoft SharePoint Administration Toolkit v4.0 x86

Microsoft SharePoint Administration Toolkit v4.0 x64

1
  • I want to detect it either by reading registry or using SharePoint API.
    – Faisal
    Feb 4, 2010 at 7:57
0

I could locate my MOSS Edition from Central Administration -> Operations -> Convert License Type (under Upgrade & Migration group).

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.