SQL Queries Configuration Manager: Reporting Device Make and Model

Three simple SQL queries for pulling make, model, and architecture counts straight out of the Configuration Manager database — handy for a quick hardware inventory summary without building a full report. Count of all models SELECT Model0 AS Model, COUNT(*) AS Count FROM v_GS_COMPUTER_SYSTEM GROUP BY Model0 Count of all makes/manufacturers SELECT manufacturer0 AS Make, […]

SQL Queries For Make Model And Architectures Of Devices
Three simple SQL queries for pulling make, model, and architecture counts straight out of the Configuration Manager database — handy for a quick hardware inventory summary without building a full report.

Count of all models

SELECT Model0 AS Model, COUNT(*) AS Count
FROM v_GS_COMPUTER_SYSTEM
GROUP BY Model0

Count of all makes/manufacturers

SELECT manufacturer0 AS Make, COUNT(*) AS Count
FROM v_GS_COMPUTER_SYSTEM
GROUP BY manufacturer0

Count of architectures

SELECT systemtype0 AS Architecture, COUNT(*) AS Count
FROM v_GS_COMPUTER_SYSTEM
GROUP BY systemtype0
Run any of these directly in SQL Server Management Studio against your CM database. They’re also a good base for a Power BI or SSRS dashboard — point either tool at the same v_GS_COMPUTER_SYSTEM view and you can turn these grouped counts into a chart with very little extra work.

Resources


Discover more from TechyGeeksHome

Subscribe to get the latest posts sent to your email.

Andrew Armstrong

Andrew Armstrong is a UK-based IT professional with 26+ years of hands-on experience in Windows, Windows Server, SCCM/ConfigMgr, Active Directory, PowerShell, and enterprise infrastructure.

He founded TechyGeeksHome in 2010 and has published over 1,500 practical guides covering real-world IT problems and solutions. When not solving IT problems,

Andrew develops free Windows utilities including Ultimate Settings Panel, which has been downloaded over 850,000 times.