Tuesday, 23 September 2014

SCCM Query to check Client version




This simple query will show the SCCM client version (works with SCCM 2007 and 2012):



select distinct
 SYS.Name0 as 'Machine Name',
 SYS.User_Name0 as 'Login ID',
 SYS.User_Domain0 as 'Domain',
 USR.Full_User_Name0 as 'Full Name',
 case
  when SYS.Client0 = 1 then 'Yes'
  when SYS.Client0 = 0 then 'No'
  else convert(varchar(2), SYS.Client0)
 end as 'Client Installed',
 SYS.Client_Version0 as 'Client Version'
from
 v_R_System SYS
 join v_FullCollectionMembership FCM on SYS.ResourceID = FCM.ResourceID
 join v_Collection CN on FCM.CollectionID = CN.CollectionID
 join v_R_User USR on SYS.User_Name0 = USR.User_Name0
where
 CN.Name = 'All Systems'


2 comments:

  1. Thanks for the post, but I found the query crashed the SCCM console (using version 5.00.8239.1302). The query starts to return each component (about 20) for every computer so results in tens of thousands of records in my case.

    ReplyDelete
    Replies
    1. Hi Ian,

      you're right. I checked and correct it. In My SCCM is working fine.

      Regards

      Delete

Give me you feedback!