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 2007»SCCM Site Hierarchy with reporting sitecode report

    SCCM Site Hierarchy with reporting sitecode report

    Eswar KonetiBy Eswar KonetiOctober 15, 11:58 am1 Min Read SCCM 2007 759 Views
    Share
    Facebook Twitter LinkedIn Reddit

    Sometimes I find Difficult to locate specific site from the Hierarchy(mostly if you are in large environment with many nodes) until you know where they attached to.

    I use the report data most of the times as reference to locate where the site resides based in its reporting site (primary) and primary site reporting to which.

    Select
    C.servername,b.SiteCode,C.SiteName,C.ReportingSiteCode, C.InstallDir,
    Case b.Status
    When 0 Then 'OK'
    When 1 Then 'Warning'
    When 2 Then 'Critical'
    Else ' '
    End AS 'Site Status',
    Case C.Status
    When 1 Then 'Active'
    When 2 Then 'Pending'
    When 3 Then 'Failed'
    When 4 Then 'Deleted'
    When 5 Then 'Upgrade'
    Else ' '
    END AS 'Site State'
    From V_SummarizerSiteStatus B
    Join v_Site C on B.SiteCode = C.SiteCode
    join v_GS_LOGICAL_DISK LD on c.Servername=LD.SystemName0
    group by C.servername,b.SiteCode,C.SiteName,C.ReportingSiteCode,C.InstallDir,b.Status,C.Status
    Order By B.SiteCode

    Hope It helps!

    Until Next

    sccm all nodes in report SCCM hirarchy report sccm installation directory report sccm report SCCM report with reporting sites and its child site sccm site hirarchy report 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

    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.