none
Find SCCM Client version on the computer (not via the console)

    Question

  • How do you determine (via a commandline or Registry, if possible) the SCCM Client version from the computer end?

    We just updated to SCCM 2007 SP2 R2 with three hotfixes, so, the console and tools like SCCM client center report the version as:  4.00.6487.2152

    However the Registry entry: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\SMS\Mobile Client\product version key, and the WMIC commandline:  wmic path CIM_Datafile where "Name='c:\\windows\\system32\\ccm\\ccmexec.exe' AND version like '4.0%'" get version , both show just the SP2 version:  4.00.6487.2000

    Thanks.

    Thursday, February 17, 2011 11:15 PM

Answers

  • You can one of a couple of things.

    Retrieve the component version numbers straight from the registry: HKEY_LOCAL_MACHINE\Software\Microsoft\SMS\Client\Client Components\Component Name\Installation Properties|Installed Version (on 32-bit systems, insert Wow6432Node after Software in the path for 64-bit clients). This is where ConfigMgr gets the versions numbers from and inturn sotres them in WMI in the configuration.mof file.

    Query WMI: root\ccm, CCM_InstalledComponent class, version attributes. This is where the ConfigMgr agent puts the info it gathers from the registry as dictated by configuration.mof.

    I put up a blog post about how to query these version numbers in the console; the queries simply use the data returned from the registry via the hardware inventory process as dictated by configuration.mog and sms_def.mof and thus you can reference it for the version numbers I documented in it: http://myitforum.com/cs2/blogs/jsandys/archive/2011/01/17/configmgr-client-hotfix-queries.aspx.


    Jason | http://myitforum.com/cs2/blogs/jsandys | http://blogs.catapultsystems.com/jsandys/default.aspx | Twitter @JasonSandys
    • Proposed as answer by Kent AgerlundMVP Friday, February 18, 2011 6:47 AM
    • Marked as answer by Bill Bradley Saturday, February 19, 2011 2:07 PM
    Friday, February 18, 2011 3:05 AM

All replies

  • You can one of a couple of things.

    Retrieve the component version numbers straight from the registry: HKEY_LOCAL_MACHINE\Software\Microsoft\SMS\Client\Client Components\Component Name\Installation Properties|Installed Version (on 32-bit systems, insert Wow6432Node after Software in the path for 64-bit clients). This is where ConfigMgr gets the versions numbers from and inturn sotres them in WMI in the configuration.mof file.

    Query WMI: root\ccm, CCM_InstalledComponent class, version attributes. This is where the ConfigMgr agent puts the info it gathers from the registry as dictated by configuration.mof.

    I put up a blog post about how to query these version numbers in the console; the queries simply use the data returned from the registry via the hardware inventory process as dictated by configuration.mog and sms_def.mof and thus you can reference it for the version numbers I documented in it: http://myitforum.com/cs2/blogs/jsandys/archive/2011/01/17/configmgr-client-hotfix-queries.aspx.


    Jason | http://myitforum.com/cs2/blogs/jsandys | http://blogs.catapultsystems.com/jsandys/default.aspx | Twitter @JasonSandys
    • Proposed as answer by Kent AgerlundMVP Friday, February 18, 2011 6:47 AM
    • Marked as answer by Bill Bradley Saturday, February 19, 2011 2:07 PM
    Friday, February 18, 2011 3:05 AM
  • Thanks, Jason, nicely solved!
    Saturday, February 19, 2011 2:10 PM
  • Hi Bill,

    Can you share me the code for creating global condition for CM client version?


    saravanan rajappa

    Friday, June 28, 2013 9:28 AM