Get-MgServicePrincipal — Export ResultsIT technician command center
Microsoft Graph · Entra ID and Graph

Get-MgServicePrincipal — Export Results

Export the output of Get-MgServicePrincipal for documentation or review.

Copy-ready commandGet-MgServicePrincipal — Export Results
Get-MgServicePrincipal -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 Get-MgServicePrincipal for documentation or review.

Get-MgServicePrincipal -All | Export-Csv .\output.csv -NoTypeInformation

Original command

List enterprise applications and service principals.

Get-MgServicePrincipal -All

Common errors

Command not found

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