What is SharePoint SKU?

In this short article I would try to reveal the meaning of SharePoint SKU?

What is SKU?

The expansion of SKU is Stock Keeping Unit and it represents variations of the same product.

For example SharePoint 2010 has the following variations:

  1. Foundation
  2. Standard
  3. Enterprise

Plus there are trials too.

The SKU can be determined through the registry key in the installation machine.  Following are different SKU variations of SharePoint 2010.

image

When the knowledge is Important?

While working with customer locations, you might need to know the variation of SharePoint installed.  This will allow you to understand the underlying features available.

How to find the SKU?

You can run the following code to find the SKU.

public class SKUFinder
{
internal static Hashtable _products;

public static Hashtable SharePointProducts
{
get
{
if (_products == null)
{
_products = new Hashtable();

_products.Add(“BEED1F75-C398-4447-AEF1-E66E1F0DF91E”, “SharePoint Foundation 2010”);
_products.Add(“1328E89E-7EC8-4F7E-809E-7E945796E511”, “Search Server Express 2010”);

_products.Add(“B2C0B444-3914-4ACB-A0B8-7CF50A8F7AA0”, “SharePoint Server 2010 Standard Trial”);
_products.Add(“3FDFBCC8-B3E4-4482-91FA-122C6432805C”, “SharePoint Server 2010 Standard”);
_products.Add(“88BED06D-8C6B-4E62-AB01-546D6005FE97”, “SharePoint Server 2010 Enterprise Trial”);
_products.Add(“D5595F62-449B-4061-B0B2-0CBAD410BB51”, “SharePoint Server 2010 Enterprise”);

_products.Add(“BC4C1C97-9013-4033-A0DD-9DC9E6D6C887”, “Search Server 2010 Trial”);
_products.Add(“08460AA2-A176-442C-BDCA-26928704D80B”, “Search Server 2010”);

_products.Add(“84902853-59F6-4B20-BC7C-DE4F419FEFAD”, “Project Server 2010 Trial”);
_products.Add(“ED21638F-97FF-4A65-AD9B-6889B93065E2”, “Project Server 2010”);

_products.Add(“926E4E17-087B-47D1-8BD7-91A394BC6196”, “Office Web Companions 2010″);
}

return _products;
}
}

private const String SharePointProductsRegistryPath = @”SOFTWAREMicrosoftShared ToolsWeb Server Extensions14.0WSSInstalledProducts”;

public static string Execute()
{
string result = “Unknown”;
try
{
//Open the registry key in read-only mode.
using (RegistryKey key = Registry.LocalMachine.OpenSubKey(SharePointProductsRegistryPath, false))
{
//Get all of the installed product code/SKUId pairs.
foreach (String value in key.GetValueNames())
{
try
{
//Get the SKUId and see whether it is a known product.
String SKUId = key.GetValue(value) as String;

if (SharePointProducts[SKUId] != null)
{
result = string.Format(“Product Installed: {0}”, SharePointProducts[SKUId]);
}
else
{
result = string.Format(“Unknown Product: {0}”, SKUId);
}
}
catch (Exception e)
{
result = string.Format(“Could not read key exception was {0}”, e.Message);
}
}
}
}
catch (Exception e)
{
result = string.Format(“Could not open key exception was {0}”, e.Message);
}

return result;
}
}

Need for Squadron

Squadron 2010 – Free SharePoint Tool has the SKU functionality integrated.  You need to just click on the SharePoint SKU add-in.

image

For installing Squadron, you can use the following URL:

http://www.sharepointcto.com/Squadron2010/publish.htm

image

Note

Squadron is a ClickOnce technology enabled application which automatically updates itself with latest functionalities.  Additional to SKU there are other add-ins for analyzing site structure, permissions, list manipulations, workflow terminations etc.

References

http://msdn.microsoft.com/en-us/library/ff721969(v=office.14).aspx

http://en.wikipedia.org/wiki/SKU

Leave a Reply

Your email address will not be published. Required fields are marked *