• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 273
  • Last Modified:

SCCM Reporting - Runing Report Against All Systems Collection - Not Appearing

I am running the following SCCM Report query against the All Systems Collection, however clients that have the Approval = N/A or Not Approved are not being reported.

Any ideas on how I can get the Approval = N/A and Not Approved resources to appear in my report?

SELECT     TOP (100) PERCENT B.Netbios_Name0 AS [Computer Name], A.Model0, B.Client0
FROM         dbo.v_GS_COMPUTER_SYSTEM AS A INNER JOIN
                      dbo.v_R_System AS B ON A.ResourceID = B.ResourceID INNER JOIN
                      dbo.v_FullCollectionMembership AS C ON A.ResourceID = C.ResourceID
WHERE     (C.CollectionID = @CollectionID)
ORDER BY [Computer Name]
0
rmessing171
Asked:
rmessing171
1 Solution
 
merowingerCommented:
Try the following:
SELECT  DISTINCT  SYS.Netbios_Name0 AS [Computer Name], PC.Model0, SYS.Client0
FROM         dbo.v_R_System AS SYS
LEFT OUTER JOIN dbo.v_GS_COMPUTER_SYSTEM AS PC ON PC.ResourceID = SYS.ResourceID 
LEFT OUTER JOIN dbo.v_FullCollectionMembership AS COLL ON PC.ResourceID = COLL.ResourceID 
ORDER BY [Computer Name] 

Open in new window

0

Featured Post

Fill in the form and get your FREE NFR key NOW!

Veeam is happy to provide a FREE NFR server license to certified engineers, trainers, and bloggers.  It allows for the non‑production use of Veeam Agent for Microsoft Windows. This license is valid for five workstations and two servers.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now