Copy-ready commandGet-MgDevice — Export Results
Get-MgDevice -All | Export-Csv .\output.csv -NoTypeInformationRequirements and permissions
- Requirements
- Microsoft.Graph PowerShell SDK
- Permissions
- Graph delegated or application permissions
- Last reviewed
- 2026-07-31
Examples
Export Results
Export the output of Get-MgDevice for documentation or review.
Get-MgDevice -All | Export-Csv .\output.csv -NoTypeInformationOriginal command
List Microsoft Entra ID device objects.
Get-MgDevice -AllCommon errors
Command not found
Confirm Microsoft.Graph PowerShell SDK is installed and available in your current shell.