Get-CrmLicenseProperty

Retrieves the license properties for the Dynamics 365 deployment.

Syntax

Get-CrmLicenseProperty
   [-Timeout <Int32>]
   [-Diag]
   [-Credential <PSCredential>]
   [-DwsServerUrl <String>]

Description

The Get-CrmLicenseProperty cmdlet retrieves the product ID and server edition.

Examples

Example 1

PS C:\> Get-CrmLicenseProperty | Format-List

Returns the server edition and product ID for this Microsoft Dynamics 365 deployment in a list format. The default display is table format.

Parameters

-Credential

Expects a variable that contains the user credentials used for signing in to Dynamics 365 on-premises organization. To establish this variable, run the PowerShell command $Cred = Get-Credential.

Type:PSCredential
Position:Named
Default value:None
Required:False
Accept pipeline input:True
Accept wildcard characters:False

-Diag

Turns on stack traces for error reports returned from Dynamics 365 service calls. Enabling this emits a detailed error message, including a stack trace, when an error is encountered by the Dynamics 365 PowerShell command.

Type:SwitchParameter
Position:Named
Default value:None
Required:False
Accept pipeline input:True
Accept wildcard characters:False

-DwsServerUrl

The URL of the Deployment Web Service. This should be in the format: https://, for example, https://contoso.

Type:String
Position:Named
Default value:None
Required:False
Accept pipeline input:True
Accept wildcard characters:False

-Timeout

For internal use only.

Type:Int32
Position:Named
Default value:None
Required:False
Accept pipeline input:True
Accept wildcard characters:False

Inputs

System.Int32

System.Management.Automation.SwitchParameter System.Management.Automation.PSCredential System.String

Outputs

Microsoft.Xrm.Sdk.Deployment.LicenseProperties