Skip to main content
Version: 2.2.0

Get-MtLicenseInformation

SYNOPSIS​

Get license information for a Microsoft 365 product.

SYNTAX​

Get-MtLicenseInformation [-Product] <String> [-ProgressAction <ActionPreference>] [<CommonParameters>]

DESCRIPTION​

This function retrieves the license information for a Microsoft 365 product from the current tenant.

EXAMPLES​

EXAMPLE 1​

Get-MtLicenseInformation -Product EntraID

Returns the license type for Entra ID (e.g., Free, P1, P2, Governance).

PARAMETERS​

-Product​

The Microsoft 365 product or service plan for which to retrieve the license information.

Type: String
Parameter Sets: (All)
Aliases:

Required: True
Position: 1
Default value: None
Accept pipeline input: True (ByPropertyName, ByValue)
Accept wildcard characters: False

-ProgressAction​

Determines how PowerShell responds to progress updates generated by a script, cmdlet, or provider, such as the progress bars generated by Write-Progress.

Type: ActionPreference
Parameter Sets: (All)
Aliases: proga

Required: False
Position: Named
Default value: None
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​

System.String​

NOTES​

https://maester.dev/docs/commands/Get-MtLicenseInformation