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 report Computer information with Boundary added

    SCCM report Computer information with Boundary added

    Eswar KonetiBy Eswar KonetiJuly 10, 12:51 pm1 Min Read SCCM Reports 4,433 Views
    Share
    Facebook Twitter LinkedIn Reddit

    Full Details : http://social.technet.microsoft.com/Forums/en-US/configmgrreporting/thread/188bb324-9217-4fa6-b814-06a3d353bf52

    Boundary information (AD Site) added .

    select distinct v_GS_SYSTEM.Name0 as 'Computer Name',A.AD_Site_Name0, substring(AccountName0,charindex('Domain=',Accountname0)+8,(charindex('Name=',Accountname0)-charindex('Domain=',Accountname0)-10)) as 'Domain Name', substring(AccountName0,len(AccountName0)-charindex('"',reverse(AccountName0),2)+2,charindex('"',reverse(AccountName0),2)-2) as 'User Name'
    from v_GS_SYSTEM
    INNER JOIN v_GS_LocalAdmins ON v_GS_SYSTEM.ResourceID = v_GS_LocalAdmins.ResourceID
    INNER JOIN v_R_System A ON v_GS_SYSTEM.ResourceID=A.ResourceID

    JOIN v_FullCollectionMembership FCM on v_gs_system.ResourceID = FCM.ResourceID
    where (AccountName0 not like '%Administrator%' AND AccountName0 not like '%Domain Admins%')

    and
    FCM.CollectionID='SMSC1003'

    CM07 sccm report SCCM report with Boundary AD site SQL SQL code
    Share. Twitter LinkedIn Email Facebook Reddit

    Related Posts

    SCCM SQL Report – Compare Installed Apps on TWO Different Computers

    July 13, 10:35 am

    Monitoring Endpoint Security Applications with SCCM ConfigMgr SQL

    October 11, 8:48 pm

    Efficiently Identify Co-Managed Devices: Techniques and Tools

    January 17, 8:37 pm

    2 Comments

    1. Don on September 12, 2012 11:05 PM

      Hi,
      I'm trying to gather a list of OSes in a particular AD boundary.

      I found this query from the canned reports:

      SELECT OPSYS.Caption0 as C054, COUNT(*) AS 'Count'
      FROM v_GS_OPERATING_SYSTEM OPSYS
      inner join v_R_System sys on OPSYS.ResourceID=sys.ResourceID
      GROUP BY OPSYS.Caption0
      ORDER BY OPSYS.Caption0

      Wondering how to add AD boundary into there.

      Thanks again...Your blogs have been tremendously helpful.

      Reply
      • Eswar Koneti on September 13, 2012 10:44 AM

        You can try this by proving AD site information if you are using AD site as Boundary :

        SELECT OPSYS.Caption0 as C054, COUNT(*) AS 'Count'
        FROM v_GS_OPERATING_SYSTEM OPSYS
        inner join v_R_System sys on OPSYS.ResourceID=sys.ResourceID
        where sys.AD_Site_Name0='AD-Sitename'
        GROUP BY OPSYS.Caption0
        ORDER BY OPSYS.Caption0

        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.