次の方法で共有


Get-CrmAccessLicense

Retrieves the server licensing and client access license (CAL) information for the Dynamics 365 deployment.

Syntax

Get-CrmAccessLicense
   [-License]
   [-StartDate <DateTime>]
   [-EndDate <DateTime>]
   [-TabMethod <TabulationMethod>]
   [-Timeout <Int32>]
   [-Diag]
   [-Credential <PSCredential>]
   [-DwsServerUrl <String>]
Get-CrmAccessLicense
   [-LicenseName] <String>
   [-StartDate <DateTime>]
   [-EndDate <DateTime>]
   [-TabMethod <TabulationMethod>]
   [-Timeout <Int32>]
   [-Diag]
   [-Credential <PSCredential>]
   [-DwsServerUrl <String>]

Description

The Get-CrmAccessLicense cmdlet retrieves the server licensing and CAL information for the Dynamics 365 deployment.

Examples

Example 1

PS C:\> Get-CrmAccessLicense | Format-Table

Returns a list of all license types and counts for all current system work in a table format.

Example 2

PS C:\> Get-CrmAccessLicense -LicenseName “Dynamics CRM 2016 Basic CAL” -StartDate “1/1/2017” -EndDate “12/31/2017”

Gets users for the Dynamics CRM 2016 Basic CAL license type within a specific date range.

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

-EndDate

Filters data that is returned to data that is on or before this date.

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

-License

This parameter prints out the list of possible licenses.

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

-LicenseName

Specifies the name of the license to return information for. The possible values are returned by running the command Get-CrmAccessLicenses -License.

Type:String
Accepted values:Dynamics CRM Server 2016, Dynamics CRM Workgroup Server 2016, Dynamics CRM 2016 Enterprise CAL, Dynamics CRM 2016 Professional CAL, Dynamics CRM 2016 Basic CAL, Dynamics CRM 2016 Essential CAL, Dynamics CRM 2016 Administrative CAL, Dynamics CRM 2016 Device Enterprise CAL, Dynamics CRM 2016 Device Professional CAL, Dynamics CRM 2016 Device Basic CAL, Dynamics CRM 2016 Device Essential CAL
Position:0
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-StartDate

Filters data that is returned to data that is on or after this date.

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

-TabMethod

Describes the way that the set of data should be returned, either as unique records or counts.

Type:TabulationMethod
Accepted values:Net, Unique
Position:Named
Default value:None
Required:False
Accept pipeline input:False
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.Crm.PowerShell.GetCrmAccessLicenseCmdlet+LicenseInfo[]

Microsoft.Crm.PowerShell.GetCrmAccessLicenseCmdlet+UserInfo[] Microsoft.Crm.PowerShell.GetCrmAccessLicenseCmdlet+ServerInfo[] Microsoft.Crm.PowerShell.GetCrmAccessLicenseCmdlet+EntityNetInfo