Close Menu
    Facebook X (Twitter) Instagram
    Sunday, October 12
    X (Twitter) LinkedIn Reddit RSS
    All about Endpoint Management
    • Home
    All about Endpoint Management
    Home»Office 365»EMS»Distinguishing Desktops and Laptops in Intune based on Chassis Type

    Distinguishing Desktops and Laptops in Intune based on Chassis Type

    Eswar KonetiBy Eswar KonetiJuly 11, 9:25 pm3 Mins Read EMS 2,204 Views
    Share
    Facebook Twitter LinkedIn Reddit

    The term "Chassis Type" refers to the physical form factor or case design of computer hardware. Essentially, it defines the shape, size, and overall configuration of the computer enclosure that houses all internal components. This specification is crucial as it determines the design and compatibility of the components that can be accommodated within the system.

    Where Chassis Type Information is Stored:

    On Windows devices, details regarding the chassis type are stored within the WMI class "Win32_SystemEnclosure". For those unfamiliar, WMI (Windows Management Instrumentation) provides a comprehensive infrastructure for managing and querying system data on Windows operating systems. You can  deeper into this subject through the official Microsoft documentation available here.

    For organizations utilizing SCCM , the Chassis Type information is collected as part of the hardware inventory. This data is stored in the "v_GS_SYSTEM_ENCLOSURE" table, facilitating custom reporting via SQL queries.

    Categorization of Devices:

    According to Microsoft's documentation, desktops and laptops are categorized based on specific chassis types. Here's a breakdown of the classification filters:

    • Laptop: Chassis types include "8", "9", "10", "11", "12", "14", "18", "21", "31".
    • Desktop: Chassis types include "3", "4", "5", "6", "7", "15", "16".

    Transition to Intune Management:

    Transitioning from SCCM to Intune doesn't negate the need to identify devices based on their chassis type. In this blog post, we explore various methodologies to distinguish between desktops and laptops using Intune.

    Options for Identifying Desktops and Laptops:

    Option 1: Using the Intune Console

    • Exporting Device Lists: Utilize Intune console's export functionality, combined with simple Excel formulas based on device naming conventions or Wi-Fi MAC addresses.
    • Custom Columns: Intune allows the addition of custom columns, such as Wi-Fi MAC addresses, aiding in the differentiation between laptops and desktops.

    Devices with both Wi-Fi and Ethernet.

    image

    Devices with only Ethernet.

    Option 2: Utilizing Diagnostic Settings with Log Analytics

    • Automated Data Visualization: Configure diagnostic settings within Intune to stream data to Azure Log Analytics. This facilitates the use of KQL queries to automate data analysis, enabling visualization of device counts categorized as laptops or desktops.

    Intune diagnostics settings

    image

    Here is the Microsoft documentation about the IntuneDevices schema table https://learn.microsoft.com/en-us/azure/azure-monitor/reference/tables/intunedevices

    IntuneDevices table contains “WifiMacAddress” . We will use this to identify if the device is laptop or desktop.

    The following is the KQL query with iif condition. you can run this query in Log analytics.

    IntuneDevices
    | summarize arg_max(TimeGenerated, *) by DeviceName
    | where OS == "Windows" and DeviceName !contains "#" and isnotempty(DeviceName) and ManagedBy != "MDE" and CompliantState != "ConfigManager"
    | extend Chassistype = iif(Model contains "Virtual", "Virtual", iif(isnotnull(WifiMacAddress) and WifiMacAddress != "", "Laptop", "Desktop"))
    | summarize Count = count() by Chassistype

    Option 3: Leveraging Microsoft Graph

    Powershell Graph: Query Wi-Fi and Ethernet MAC addresses using Powershell through Microsoft Graph. While the Chassis Type isn't directly available, this approach aids in comprehensive device data analysis.

    Get-MgDeviceManagementManagedDevice -ManagedDeviceId $id | Select-Object DeviceName, EthernetMacAddress, WiFiMacAddress | Export-CSV devices.csv

    For more information about the powershell command, please refer here

    Option 4: Collecting WMI Data with Proactive Remediation (equivalent to SCCM)

    • Enhanced Inventory: Implement Proactive Remediation scripts to collect WMI class data and store it in Log Analytics. This method replicates SCCM-like functionality within Intune for robust custom reporting.

    Enhance custom inventory using Proactive Remediation, please refer Enhance Intune Inventory data with Proactive Remediations and Log Analytics - MSEndpointMgr

    Here is the powershell you can append to you existing code to collect the data.

    $SystemEnclosure = Get-CimInstance -ClassName Win32_SystemEnclosure -ErrorAction SilentlyContinue $ChassisType = $SystemEnclosure.ChassisTypes

    Do you have different methods to identify the chassistype in intune, do comment below.

    Chassis type Custom inventory Desktop EMS Ethernet Graph intune inventory Laptop Log Analytics Powershell Wifi
    Share. Twitter LinkedIn Email Facebook Reddit

    Related Posts

    Export Microsoft Entra ID User Authentication Methods to CSV using PowerShell & Microsoft Graph API

    August 13, 2:08 pm

    Automating Intune Deployment Rings Using Entra ID Dynamic Groups and Regex

    July 01, 10:31 pm

    Exporting Intune Win32 Apps with All Properties Using PowerShell and Microsoft Graph

    June 30, 7:01 pm

    2 Comments

    1. Jeff on May 16, 2025 2:22 PM

      Can we use these different query methods to populate dynamic device groups?

      Reply
      • Eswar Koneti on June 30, 2025 9:41 PM

        Hi Jeff,
        The groups are at Entra level which do not have the chassis type or way to identify device is physical or virtual, but you can use the filters based on the hardware models.

        Thanks,
        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.