Intune Mac Address

Handian Sudianto 7,656 Reputation points
2026-11-17T13:02:37.65+00:00

Can we get hostname or device by mac address on intune?

Microsoft Security | Intune | Other
0 comments No comments

2 answers

Sort by: Most helpful
  1. Marcin Policht 113.3K Reputation points MVP Volunteer Moderator
    2026-11-17T13:56:25.2966667+00:00

    AFAIK, there is no direct way to do this via UI, but you an leverage PowerShell/MS Graph (you can dump all MACs by using the script provided at https://techcommunity.microsoft.com/discussions/officegraph/powershell-script-to-pull-mac-addresses-from-intune/4092481 and then simply parse if for the one you're looking for


    If the above response helps answer your question, remember to "Accept Answer" so that others in the community facing similar issues can easily find the solution. Your contribution is highly appreciated.

    hth

    Marcin

    Was this answer helpful?

    0 comments No comments

  2. AI answer

    2026-11-17T13:03:22.5966667+00:00

    Intune can display a managed device’s MAC address, but it does not provide a direct “find device by MAC address” search; use Microsoft Graph to compare the inventoried MAC values, or search directly in Microsoft Defender for Endpoint if available.

    Check a known device in Intune

    1. Open Intune admin center.
    2. Go to Devices > All devices.
    3. Select the device, then select Device details.
    4. Under Network details, review:
      • Ethernet MAC
      • Wi-Fi MAC
      • Device name

    For a macOS device without Ethernet, Intune reports its Wi-Fi MAC as the Ethernet MAC value. These fields are read-only inventory data, and inventory normally refreshes every seven days. Intune does not display Wi-Fi MAC addresses for Android personally owned work-profile devices. ^1^

    This works when the device is already known. The All devices interface does not document MAC address as a searchable field.

    Find a device by Wi-Fi MAC with Microsoft Graph

    The Intune managedDevice resource exposes both deviceName and wiFiMacAddress, but the MAC property does not document support for server-side $filter. Retrieve the inventory and compare the MAC locally instead. ^2^

    Example using Microsoft Graph PowerShell:

    Connect-MgGraph -Scopes "DeviceManagementManagedDevices.Read.All"
    
    $targetMac = "00:1A:2B:3C:4D:5E" -replace '[:-]', ''
    
    Get-MgDeviceManagementManagedDevice -All |
        Where-Object {
            ($_.WiFiMacAddress -replace '[:-]', '') -eq $targetMac
        } |
        Select-Object DeviceName, WiFiMacAddress, Id,
                      OperatingSystem, LastSyncDateTime
    

    Normalize separators because MAC addresses might be supplied with colons, hyphens, or neither. The account must be authorized to read Intune managed devices, and the tenant requires an active Intune license for this API.

    For Ethernet MAC, Graph exposes ethernetMacAddress, but it is a non-default property. Microsoft documents retrieving it with an individual device request using $select; $search is not supported. ^3^

    GET https://graph.microsoft.com/v1.0/deviceManagement/managedDevices/{managedDeviceId}?$select=deviceName,ethernetMacAddress
    

    Consequently, finding an unknown device by Ethernet MAC requires first enumerating device IDs and then reading that property for each candidate; Intune does not offer a direct server-side Ethernet-MAC lookup.

    Direct lookup through Microsoft Defender

    If the environment uses Microsoft Defender for Endpoint and the device is onboarded or discovered:

    1. Open the Microsoft Defender portal.
    2. Go to Assets > Devices.
    3. Enter the MAC address in the inventory search box.
    4. Open the matching result to see its reported hostname or device name.

    Defender Device Inventory explicitly supports searching by MAC address. Available inventory information depends on licensing, with Defender for Endpoint Plan 2 providing the most complete capabilities. ^4^

    Be aware that a MAC address is not always a permanent device identifier. Devices can have multiple adapters, and Wi-Fi MAC randomization can cause the observed address to differ from the physical address.


    References

    1. View device details
    2. managedDevice resource type
    3. managedDevice resource type
    4. Explore devices in the device inventory
    AI-generated content may be incorrect. Read our transparency notes for more information.

    Was this answer helpful?

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.