How to create a custom report in IT Management Suite (ITMS) to show Windows computers with specific OS update versions (e.g., 22H2, 23H2)
Users may find that standard inventory reports in ITMS display general Operating System (OS) names but do not explicitly show the specific Windows update version (such as 22H2 or 23H2) in a single combined string for easy exported reporting.
The specific update version (Release ID or Display Version) is stored in the Inv_AeX_AC_Identification table, while general computer naming and OS information are typically pulled from the vComputer view. A custom SQL join is required to concatenate these values into a single readable column.
Follow these steps to create a custom SQL report that displays the Computer Name, OS Name, Display Version, and a combined "OS Version" string.
DECLARE @v1_TrusteeScope nvarchar(max)
SET @v1_TrusteeScope = N'%TrusteeScope%'
SELECT
vc.[Guid] AS [_ItemGuid],
vc.[Name],
vc.[OS Name],
iai.[DisplayVersion],
CONCAT(vc.[OS Name],' ', iai.[DisplayVersion]) as [OS Version]
FROM
[vComputer] AS vc
INNER JOIN Inv_AeX_AC_Identification iai on iai._ResourceGuid=vc.Guid
WHERE
(
(vc.[Guid] IN (SELECT [ResourceGuid] FROM [ScopeMembership] WHERE [ScopeCollectionGuid] IN (SELECT [ScopeCollectionGuid] FROM dbo.fnGetTrusteeScopeCollections(@v1_TrusteeScope))))
)