Eswar Koneti's Blog

All about Configmgr and its connected objects…….

  • About Author
      View eswar koneti's LinkedIn profile
  • Enter your email address to subscribe to this blog and receive notifications of new posts by email.

    Join 99 other subscribers

  • Awards


  • FaceBook Updates

  • Catagories

  • Meta

  • Copyright!

    All the blog posts in this website are owned by Eswar Koneti and may not be reused in any mode without prior approval of Eswar Koneti. You may quote one paragraph from the blog posts if you link to the original blog post.
    Happy Reading!

Configr(SCCM) report for MS office outlook based on Version and OU name

Posted by Eswar Koneti on 19th January 2012

 

 

SELECT
b.Netbios_Name0,
b.User_Name0,
CASE
WHEN a.FileVersion LIKE ’11.%’ THEN ‘Office 2003′
WHEN a.FileVersion LIKE ’12.%’ THEN ‘Office 2007′
WHEN a.FileVersion LIKE ’14.%’ THEN ‘Office 2010′
ELSE ‘Udda Version’ END AS ‘Office Version’,
a.FileName,
a.FileVersion,
a.FilePath

FROM
v_GS_SoftwareFile a
JOIN v_R_System b ON a.ResourceID = b.ResourceID
JOIN v_RA_System_SystemOUName c ON a.ResourceID = c.ResourceID

WHERE FileName = ‘outlook.exe’
AND (
c.System_OU_Name0 LIKE  ‘groupinfra.com/Corporate/Landlord SE/SE/Computers%’
OR
c.System_OU_Name0 LIKE  ‘groupinfra.com/Corporate/Landlord SE/DK/Computers%’
OR
c.System_OU_Name0 LIKE  ‘groupinfra.com/Corporate/Landlord SE/FI/Computers%’
OR
c.System_OU_Name0 LIKE  ‘groupinfra.com/Corporate/Landlord SE/NO/Computers%’
)
GROUP BY
b.Netbios_Name0,
b.User_Name0,
a.FileName,
a.FileVersion,
a.FilePath

ORDER BY
b.Netbios_Name0

 

Tags: , , , , ,
Posted in SCCM 2007, SCCM Reports, SQL Quiries | No Comments »