Forums on Intune, SCCM, and Windows 11

Welcome to the forums. Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your topics and posts, as well as connect with other members through your own private inbox!

PENDING Create custom configuration manager report

  • Thread starter Thread starter MeniAdam
  • Start date Start date
  • Replies Replies 3
  • Views Views 2K

MeniAdam

Member
Messages
7
Reaction score
0
Points
1
Hi

I want create SCCM report to get this data from Special collection:
1. Computer name
2. Computer Model
3. Computer serial number
4. Primary User

I have used SQL view to build this query:

Code:
SELECT        dbo.v_GS_COMPUTER_SYSTEM.Manufacturer0, dbo.v_GS_COMPUTER_SYSTEM.Model0, dbo.v_GS_COMPUTER_SYSTEM.Name0, dbo.v_GS_COMPUTER_SYSTEM.UserName0, dbo.v_GS_PC_BIOS.SerialNumber0,
                         dbo.v_Collections.CollectionName
FROM            dbo.v_GS_COMPUTER_SYSTEM CROSS JOIN
                         dbo.v_GS_PC_BIOS CROSS JOIN
                         dbo.v_Collections

I can not seem to create a parameter for the collection.
I have tried use this guide without success : https://prajwaldesai.com/how-to-add-collection-parameter-in-sccm-report/.

please help
thank you
 
There are a few things that needed to be update. first Never use Cross joins.

SQL:
SELECT       
    CS.Manufacturer0,
    CS.Model0,
    CS.Name0,
    CS.UserName0,
    BIOS.SerialNumber0
FROM
    dbo.v_R_System_Valid RV
    Inner join dbo.v_GS_COMPUTER_SYSTEM CS on RV.ResourceID = CS.ResourceID
    Inner JOIN dbo.v_GS_PC_BIOS BIOS on RV.ResourceID = BIOS.ResourceID
    Inner join dbo.v_FullCollectionMembership FCM on RV.ResourceID = FCM.ResourceID
    inner join dbo.v_Collection Coll on Coll.CollectionID = FCM.CollectionID
Where
    Coll.Name = 'All systems'
 

Forum statistics

Threads
7,164
Messages
27,964
Members
18,255
Latest member
Robo

Trending content

Back
Top