Skip to main content

SYNOPSIS

Retrieves all Entra ID applications and their credentials (key and password).

SYNTAX

Get-MgApplicationCredential [-ExportToExcel] [-ProgressAction <ActionPreference>] [<CommonParameters>]

DESCRIPTION

This function returns a list of all Entra ID applications with their credentials information, including key credentials and password credentials, along with their validity status. The function also retrieves the owners of each application.

EXAMPLES

EXAMPLE 1

Get-MgApplicationCredential
Retrieves all Entra ID applications and their credentials.

EXAMPLE 2

Get-MgApplicationCredential -ForceNewToken
Forces the function to disconnect and reconnect to Microsoft Graph to obtain a new access token.

EXAMPLE 3

Get-MgApplicationCredential -ExportToExcel
Gets all application credentials and exports them to an Excel file.

PARAMETERS

-ExportToExcel

(Optional) If specified, exports the results to an Excel file in the user’s profile directory.
Type: SwitchParameter
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS

OUTPUTS

NOTES

https://ps365.clidsys.com/docs/commands/Get-MgApplicationCredential