How to Find Your SharePoint Version in Ten Seconds Flat with PowerShell

powershell(Also, check our related post What SharePoint Version Am I Using? that goes into a little more depth at determining if you are using SharePoint 2007, SharePoint 2010 or SharePoint 2013.)

This post will show you the quickest route to identifying which SharePoint version you are working with.

Have you ever wondered how to find the version of SharePoint installed on your farm and associated products without clicking around Central Administration?  This can be a pain especially if you have a large multi-server farm.  There are obviously manual ways of figuring out this information, but who wants to do that?  PowerShell once again to the rescue!

In order to execute the PowerShell code, you must be a SharePoint farm administrator with Shell Admin rights. Power up Powershell ISE and execute the below code.  The code is quite simple:

ASNP Microsoft.SharePoint.Powershell

(Get-SPFarm).Products

This returns a list of GUIDs related to what specific Microsoft Server products are installed on this farm:list of GUIDs for what Microsoft Server products are installed on farm

To figure out what these GUIDs mean, please refer to the table below.

VALUE

PRODUCT

84902853-59F6-4B20-BC7C-DE4F419FEFAD

Project Server 2010 Trial

ED21638F-97FF-4A65-AD9B-6889B93065E2

Project Server 2010

BC4C1C97-9013-4033-A0DD-9DC9E6D6C887

Search Server 2010 Trial

08460AA2-A176-442C-BDCA-26928704D80B

Search Server 2010

BEED1F75-C398-4447-AEF1-E66E1F0DF91E

SharePoint Foundation 2010

1328E89E-7EC8-4F7E-809E-7E945796E511

Search Server Express 2010

B2C0B444-3914-4ACB-A0B8-7CF50A8F7AA0

SharePoint Server 2010 Standard Trial

3FDFBCC8-B3E4-4482-91FA-122C6432805C

SharePoint Server 2010 Standard

88BED06D-8C6B-4E62-AB01-546D6005FE97

SharePoint Server 2010 Enterprise Trial

D5595F62-449B-4061-B0B2-0CBAD410BB51

SharePoint Server 2010 Enterprise

926E4E17-087B-47D1-8BD7-91A394BC6196

Office Web Applications 2010

35466B1A-B17B-4DFB-A703-F74E2A1F5F5E

Project Server 2013

BC7BAF08-4D97-462C-8411-341052402E71

Project Server 2013 Preview

9FF54EBC-8C12-47D7-854F-3865D4BE8118

SharePoint Foundation 2013

C5D855EE-F32B-4A1C-97A8-F0A28CE02F9C

SharePoint Server 2013 Standard

B7D84C2B-0754-49E4-B7BE-7EE321DCE0A9

SharePoint Server 2013 Enterprise

D6B57A0D-AE69-4A3E-B031-1F993EE52EDC

Microsoft Office Web Apps Server 2013

From our test we now see that there are three Microsoft Server products installed on this particular SharePoint Farm:

  1. SharePoint Foundation 2013
  2. SharePoint Server 2013 Enterprise
  3. Project Server 2013

Gotcha: If you are using SharePoint 2013 and Office Web Apps Server, that GUID will not show up because OWA is no longer directly installed on a SharePoint server like it was with the 2010 version.

If you have SharePoint Server installed, you will always see SharePoint Foundation installed as well as the Server product.  Not only will this work for SharePoint 2013, but it works exactly the same for SharePoint 2010 versions as well.

Accessing this information with PowerShell may be used in a few scenarios:

  1. Auditing your SharePoint Farm
  2. Detecting what is installed in automation deployment logic
  3. Preparing for a SharePoint upgrade

I hope that you found this trick useful and a worthy addition to your SharePoint PowerShell tool belt.  Stay tuned for more SharePoint goodness to come by subscribing to the Fpweb.net blog!








2014-01-15T08:30:36+00:00 January 15th, 2014|

3 Comments

  1. mahdi June 2, 2015 at 4:20 pm - Reply

    tks

  2. Robert January 4, 2016 at 1:41 pm - Reply

    Another great (and simple) way to do a check for major versions is to use
    (Get-SPFarm).BuildVersion.Major

    14 = SP2010
    15 = SP2013

    We are using that to help clean up version specific event receivers during a migration from SP2010 to SP2013.

  3. Prakash December 15, 2016 at 3:30 am - Reply

    Thanks man..nice post..:)

Leave A Comment