Close Menu
    Facebook X (Twitter) Instagram
    Sunday, October 12
    X (Twitter) LinkedIn Reddit RSS
    All about Endpoint Management
    • Home
    All about Endpoint Management
    Home»SCCM Reports»SCCM linked report Count of computers Assigned to Specific AD site

    SCCM linked report Count of computers Assigned to Specific AD site

    Eswar KonetiBy Eswar KonetiMay 15, 5:01 pm2 Mins Read SCCM Reports 4,137 Views
    Share
    Facebook Twitter LinkedIn Reddit

    Today's post is going to listing down computers assigned to specific site with count and this will be linked to another report that gives you computer asset information.

    If you have referred my previous post on computer asset information http://eskonr.com/2011/12/sccmconfigmgr-report-for-computer-asset-information-serialnumber-manufacturermodelprocessorip-addresshardaware-scan/ OR http://eskonr.com/2009/12/sccm-report-for-computers-asset-information-including-sn-number-and-model-name/ ,then it would be easy for you make it.

    You need to create 2 reports 1)Count of Computers from AD site 2) list the computers assigned to specific Site

    Create new report from reports node for 2) list the computers assigned to specific Site using the below SQL query(quotes posted in this blog are converted to fancy,please replace them with correct ones in your report)  :

    SELECT
    A.Name0,
    MAX (B.SerialNumber0) AS 'Serialnumber',
    A.Manufacturer0,
    A.Model0, C.Name0 AS 'Processor',
    D.TotalPhysicalMemory0 AS 'Memory (KBytes)',
    MAX ( E.Size0 ) AS 'Size (MBytes)',
    MAX (F.MACAddress0) AS 'MAC Adress',
    MAX (F.IPAddress0) AS 'IP Adress',
    G.AD_Site_Name0 AS 'AD Site',
    MAX (A.UserName0) AS 'Last user logged in',
    H.Caption0 AS 'Operating System',
    H.CSDVersion0 AS 'Service Pack',
    G.Creation_Date0 AS 'Creationdate in SMS',
    I.LastHWScan
    FROM
    v_GS_COMPUTER_SYSTEM A,
    v_GS_PC_BIOS B,
    v_GS_PROCESSOR C,
    v_GS_X86_PC_MEMORY D,
    v_GS_DISK E,
    v_GS_NETWORK_ADAPTER_CONFIGUR F,
    v_R_System G,
    v_GS_OPERATING_SYSTEM H,
    v_GS_WORKSTATION_STATUS I
    WHERE
    A.ResourceID = B.ResourceID AND
    A.ResourceID = C.ResourceID AND
    A.ResourceID = D.ResourceID AND
    A.ResourceID = E.ResourceID AND
    A.ResourceID = F.ResourceID AND
    A.ResourceID = G.ResourceID AND
    A.ResourceID = H.ResourceID AND
    A.ResourceID = I.ResourceID
    AND G.AD_Site_Name0=@ADSITE
    GROUP BY A.Name0, A.Manufacturer0, A.Model0, C.Name0, D.TotalPhysicalMemory0, G.AD_Site_Name0, A.UserName0, H.Caption0, H.CSDVersion0, G.Creation_Date0, I.LastHWScan

    Create a prompt for ADSITE with blank query as shown below :

    image

    Now create another report 1)Count of Computers from AD site with below SQL query :

    Select a.AD_Site_Name0 as [AD Site],Count(a.Netbios_Name0) as [Total Computers] from v_R_System a
    group by a.AD_Site_Name0
    order by a.AD_Site_Name0

    Once done, right click on above report and go to properties of 1)Count of Computers from AD site ,click on link

    in link type select link to another report under report select the 2nd report  2) list the computers assigned to specific Site

    and click on the prompt (hand symbol) and select column 1 as prompt shown like below.

     

    image

    You are done now ! 🙂

    Config mgr 2012 configuration Manager List of machines from specific AD site SCCM SCCM 2012 sccm report sccm report count of machine AD site
    Share. Twitter LinkedIn Email Facebook Reddit

    Related Posts

    SCCM SQL Report – Compare Installed Apps on TWO Different Computers

    July 13, 10:35 am

    Optimize Your Intune Workflow with a Powerful Browser Extension

    March 22, 10:39 am

    Migrate Microsoft 365 Updates from SCCM/MECM to Intune for Co-Managed Devices

    February 11, 9:50 pm

    2 Comments

    1. Yash Reddy on April 13, 2017 8:56 PM

      HelloEswar, can we add dbo.User_Disc.physicalDeliveryOfficeNam0 AS 'Office Location' or is there any way to get the office/branch location to this report through AD ?

      Reply
      • Eswar Koneti on May 1, 2017 4:29 PM

        if the user information is discovered by AD user discovery ,you can add the information to report. if you are sure that ,physicaldeliveryofficename0 store the information about user location ,you can join v_r_system username with v_r_user username to display user location in report.

        Regards,
        Eswar

        Reply

    Leave a ReplyCancel reply

    This site uses Akismet to reduce spam. Learn how your comment data is processed.

    Sign Up

    Get email notifications for new posts.

    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.