Close Menu
    Facebook X (Twitter) Instagram
    Sunday, October 12
    X (Twitter) LinkedIn Reddit RSS
    All about Endpoint Management
    • Home
    All about Endpoint Management
    Home»Collections»SCCM collection for Virtual or Physical computers

    SCCM collection for Virtual or Physical computers

    Eswar KonetiBy Eswar KonetiApril 04, 7:57 pm1 Min Read Collections 15,455 Views
    Share
    Facebook Twitter LinkedIn Reddit

    Computers that are running on virtual(Virtual PC or VMware etc) will have an entry in win32_computersystem with attribute model in WMI.

    You can create a collection to using table called SMS_G_System_COMPUTER_SYSTEM.

    select SMS_R_SYSTEM.ResourceID,SMS_R_SYSTEM.ResourceType,SMS_R_SYSTEM.Name,SMS_R_SYSTEM.SMSUniqueIdentifier,
    SMS_R_SYSTEM.ResourceDomainORWorkgroup,SMS_R_SYSTEM.Client from SMS_R_System
    inner join SMS_G_System_COMPUTER_SYSTEM on
    SMS_G_System_COMPUTER_SYSTEM.ResourceId = SMS_R_System.ResourceId
    where SMS_G_System_COMPUTER_SYSTEM.Model like "%Virtual%"

    To list all physical computers ,create another collection using operator not in from above collection like below:

    select SMS_R_System.ResourceId, SMS_R_System.ResourceType, SMS_R_System.Name, SMS_R_System.SMSUniqueIdentifier, SMS_R_System.ResourceDomainORWorkgroup, SMS_R_System.Client from  SMS_R_System where SMS_R_System.ResourceId not in (select SMS_R_SYSTEM.ResourceID from SMS_R_System inner join SMS_G_System_COMPUTER_SYSTEM on SMS_G_System_COMPUTER_SYSTEM.ResourceId = SMS_R_System.ResourceId where SMS_G_System_COMPUTER_SYSTEM.Model like "%Virtual%")

    Hope it helps.

    Collections Virtual Physical computers WQL Quiries
    Share. Twitter LinkedIn Email Facebook Reddit

    Related Posts

    SCCM SQL Report – Compare Installed Apps on TWO Different Computers

    July 13, 10:35 am

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

    February 11, 9:50 pm

    Investigating Co-Management Issues with Windows Endpoints in SCCM/Intune

    October 26, 10:45 pm

    4 Comments

    1. Suat on August 30, 2023 4:54 PM

      Hi, I installed SCCM. And I want to add my physical network devices in the environment, how can I do this. I tried many methods but it didn't work.

      Reply
    2. Bob on April 20, 2023 10:32 PM

      Hiya, this mostly works however it's definitely flagging some of our virtual servers as physical ones in the query...

      Reply
      • Eswar Koneti on May 9, 2023 9:50 PM

        Hi Bob,
        can you post your query here for me to look at it? if possible, screenshot of the query out (you can hide the server names).

        Thanks,
        Eswar

        Reply
    3. Pingback: SCCM 2012 R2 - Collection of Virtual Machines

    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.