Get-MtLicenseInformation
SYNOPSIS
Section titled “SYNOPSIS”Get license information for a Microsoft 365 product.
SYNTAX
Section titled “SYNTAX”Get-MtLicenseInformation [-Product] <String> [-ProgressAction <ActionPreference>] [<CommonParameters>]DESCRIPTION
Section titled “DESCRIPTION”This function retrieves the license information for a Microsoft 365 product from the current tenant.
EXAMPLES
Section titled “EXAMPLES”EXAMPLE 1
Section titled “EXAMPLE 1”Get-MtLicenseInformation -Product EntraIDReturns the license type for Entra ID (e.g., Free, P1, P2, Governance).
PARAMETERS
Section titled “PARAMETERS”-Product
Section titled “-Product”The Microsoft 365 product or service plan for which to retrieve the license information.
Type: StringParameter Sets: (All)Aliases:
Required: TruePosition: 1Default value: NoneAccept pipeline input: True (ByPropertyName, ByValue)Accept wildcard characters: False-ProgressAction
Section titled “-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: ActionPreferenceParameter Sets: (All)Aliases: proga
Required: FalsePosition: NamedDefault value: NoneAccept pipeline input: FalseAccept wildcard characters: FalseCommonParameters
Section titled “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.