ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    SCCM Queries

    IT Discussion
    sccm system center configuration manager query wql sccm 1610
    3
    4
    829
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • EddieJenningsE
      EddieJennings
      last edited by

      This is a complete n00b question, but for whatever reason, I'm having a hard time wrapping my head around this.

      Here is an example query for a device collection from this book. The tutorial walked you though making it via the wizard, then later viewing the actual query statement, which yielded.

      select * from SMS_R_System where SMS_R_System.OperatingSystemNameandVersion = "%Workstation 10%"
      

      My point of confusion is what exactly is being queried. From what I've gathered it's checking against whatever database SCCM uses, which in this case is a SQL Server database. Just for giggles (since this is a test server), I decided to view the database through SQL Server Management Studio, and I noticed there are no tables named SMS_R_SYSTEM. I'm wondering how this is possible? Clearly there's something I'm not understanding, and in the scheme of things I might not need to know the answer to this question, but it has piqued my curiosity nonetheless.

      1 Reply Last reply Reply Quote 2
      • KellyK
        Kelly
        last edited by

        I am not an SCCM guru, nor do I play one on tv, but it could be an alias for backwards compatibility.

        1 Reply Last reply Reply Quote 1
        • ObsolesceO
          Obsolesce
          last edited by

          https://docs.microsoft.com/en-us/sccm/develop/reference/core/clients/manage/sms_r_system-server-wmi-class

          EddieJenningsE 1 Reply Last reply Reply Quote 0
          • EddieJenningsE
            EddieJennings @Obsolesce
            last edited by

            @obsolesce said in SCCM Queries:

            https://docs.microsoft.com/en-us/sccm/develop/reference/core/clients/manage/sms_r_system-server-wmi-class

            And I see many of the attributes I can include in a query there. So when a query is run, this class is generated, which populates itself with the relevant data from the database, then the query selects the necessary data from this on-the-fly generated class. Does that seem right?

            1 Reply Last reply Reply Quote 1
            • 1 / 1
            • First post
              Last post