Check Version of SharePoint 2010 Currently Installed

Bradley Schacht

Bradley Schacht is a Cloud Solution Architect on the state and local government team with Microsoft based in Jacksonville, FL. He has co-authored 3 SQL Server books including "SQL Server 2014 Professional Administration". As a former consultant and trainer, he uses his experience on many parts of the Microsoft BI and data platform to help customers deliver the best possible solutions. Bradley frequently presents at community events around the country. He is a contributor to sites such as SQLServerCentral.com and an active member of the Jacksonville SQL Server User Group (JSSUG).

You may also like...

5 Responses

  1. Tak says:

    Excellent demo – i am studying for my SP Admin Cert 70-667

  2. gw says:

    I just install SP 2010 service Pack 1. I try to verify the sp1 install by Powershell and the System Center–>Servers in Farm. Both method still showing the RTM version but the Upgrade and patch Management show the sp1 version. Did I miss somethng?

    -GW

  3. DB says:

    On picture 1 version is: 14.0.4762.1000
    On picture 2 version is: 14.0.4763.1000
    On picture 3 version is: 14.0.4762.1000

    Which version are you using?

  4. Poolio says:

    All good methods when the farm has already been created. I was in the situation recently where I’d installed SharePoint binaries on all servers in a large farm, but had to verify that all the public update and cumulative updates had been installed BEFORE configuring the farm – so the Get-SPFarm and all SP cmdlets were no use.

    Should be simple, right? Check the version in Add/Remove programs… or check for updates there? That works for public updates but CUs don’t change the build number in ARP, and some don’t appear in the list of updates in ARP either. I created this PowerShell snippet to verify the installed updates:

    #Create empty array of installed SharePoint binaries
    $spInstallations = @()

    #Get registry keys for all installed applications and updates
    $UninstallKey=”SOFTWAREMicrosoftWindowsCurrentVersionUninstall”
    $reg=[microsoft.win32.registrykey]::OpenRemoteBaseKey(‘LocalMachine’,$env:COMPUTERNAME)
    $regkey=$reg.OpenSubKey($UninstallKey)
    $regkey.GetSubKeyNames() | %{
    $thiskey=$UninstallKey+””+$_
    $thisSubKey=$reg.OpenSubKey($thiskey)
    $DisplayName=$thisSubKey.GetValue(“DisplayName”)

    #Add any relevant to SharePoint to the array
    if ($DisplayName -like ‘*SharePoint*’){
    $spInstallations+=$DisplayName}
    }

    $spInstallations | sort | Get-Unique | %{Write-Host $_ -ForegroundColor Green}

    Obviously you use this at your own risk and discretion. It reads from the registry, doesn’t modify it but use with care in any case and I take no responsibility for any issues arising from it use. Yada yada…

  5. Luciano says:

    Poolio,
    Thank you for the script. This work fine where =)

Leave a Reply