Close Menu
    Facebook X (Twitter) Instagram
    Tuesday, October 6
    X (Twitter) LinkedIn Reddit RSS
    All about Endpoint Management
    • Home
    All about Endpoint Management
    Home»Collections»collection Query/ Report to get computer Model/Serial Number for a given computer

    collection Query/ Report to get computer Model/Serial Number for a given computer

    Eswar KonetiBy Eswar KonetiNovember 10, 20101 Min Read Collections
    Share
    Facebook Twitter LinkedIn Reddit

    Create a New report and paste the below query with prompt asking for computer name:

    select a.name0 ,b.SerialNumber0,c.model0  from
    v_R_System a,v_GS_PC_BIOS b,v_GS_COMPUTER_SYSTEM c
    where
    a.ResourceID=b.ResourceID and
    a.ResourceID=c.ResourceID AND
    a.name0=@hostname

    Prompt for computer name @hostname:

    select name0 from v_GS_computer_system

    Below is the collection which will prompt for computer name which should be created under component management—>queries section.

    select SMS_G_System_COMPUTER_SYSTEM.Manufacturer, SMS_G_System_PC_BIOS.SerialNumber, SMS_G_System_COMPUTER_SYSTEM.Model, SMS_R_System.LastLogonUserName from  SMS_R_System inner join SMS_G_System_PC_BIOS on SMS_G_System_PC_BIOS.ResourceID = SMS_R_System.ResourceId inner join SMS_G_System_COMPUTER_SYSTEM on SMS_G_System_COMPUTER_SYSTEM.ResourceID = SMS_R_System.ResourceId where SMS_R_System.Name = ##PRM:SMS_R_System.Name##

    Collections
    Share. Twitter LinkedIn Email Facebook Reddit

    Related Posts

    SCCM report list collections with no deployments

    December 5, 2022

    Investigating SCCM Client Policy Request and Communication Status with a Collection Specific Report

    October 15, 2022

    SCCM Collection for AAD joined devices (co-managed)

    February 5, 2021
    Leave A Reply Cancel Reply

    Author

    I’m Eswar Koneti ,a tech enthusiast, security advocate, and your guide to Microsoft Intune and Modern Device Management. My goal? To turn complex tech into actionable insights for a streamlined management experience. Let’s navigate this journey together!

    Support

    Awards

    Archives

    © Copyright 2009-2025 Eswar Koneti, All rights reserved.

    Type above and press Enter to search. Press Esc to cancel.