Connect-MgGraph — Export ResultsIT technician command center
Microsoft Graph · Entra ID and Graph

Connect-MgGraph — Export Results

Export the output of Connect-MgGraph for documentation or review.

Copy-ready commandConnect-MgGraph — Export Results
Connect-MgGraph -Scopes "User.Read.All" | Export-Csv .\output.csv -NoTypeInformation

Requirements 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 Connect-MgGraph for documentation or review.

Connect-MgGraph -Scopes "User.Read.All" | Export-Csv .\output.csv -NoTypeInformation

Original command

Connect to Microsoft Graph PowerShell.

Connect-MgGraph -Scopes "User.Read.All"

Common errors

Command not found

Confirm Microsoft.Graph PowerShell SDK is installed and available in your current shell.