List All Managed Devices
Retrieve a list of all devices managed by Intune. Use Connect-MSGraph to authenticate and ensure you have the required permissions to manage Intune resources.
Get-IntuneManagedDevice | Select-Object DeviceName, OperatingSystem, DeviceId, ComplianceState