Microsoft 365

PowerShell: How to list all Intune Devices (Model, Owner …)

In this blog post, I’ll show you how to retrieve all Intune devices and display key attributes such as the owner, device model, and other important information.
Just follow the steps below to install the Graph Intune module and list all devices.

# Intune PowerShell module installation
Install-Module -Name Microsoft.Graph.Intune -Force -AllowClobber

# Intune PowerShell module import
Import-Module -Name Microsoft.Graph.Intune

# Intune PowerShell module connection
Connect-MSGraph

# Intune PowerShell Commands
# Get the list of all the devices in the tenant
Get-IntuneManagedDevice

# Get the list of all the devices in the tenant with the device name
Get-IntuneManagedDevice | Select-Object -Property DeviceName

# Get the list of all the devices in the tenant with the device name and the device id
Get-IntuneManagedDevice | Select-Object -Property DeviceName,DeviceId

# Get the list of all the devices in the tenant with the device name and the device id and the device owner
Get-IntuneManagedDevice | Select-Object -Property DeviceName,DeviceId,DeviceOwner

# Get the list of all the devices in the tenant with the device name and the device id and the device owner and the device model
Get-IntuneManagedDevice | Select-Object -Property DeviceName,DeviceId,DeviceOwner,DeviceModel

# Get the list of all the devices in the tenant with the device name and the device id and the device owner and the device model and the device manufacturer
Get-IntuneManagedDevice | Select-Object -Property DeviceName,DeviceId,DeviceOwner,DeviceModel,DeviceManufacturer

Hope this was helpful.

Leave a comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.