Get-MsolAccountSku

Returns all the SKUs for a company.

Syntax

Get-MsolAccountSku
   [-TenantId <Guid>]
   [<CommonParameters>]

Description

The Get-MsolAccountSku cmdlet returns all the SKUs that the company owns.

Examples

Example 1: Get the company SKUs

PS C:\> Get-MsolAccountSku

This command returns a list of SKUs.

Example 2: Get available services

PS C:\> Get-MsolAccountSku | select -ExpandProperty ServiceStatus

This command returns a list of available services. This is very useful when you work with New-MsolLicenseOptions cmdlet and want to disable certain services for specific users. For more information, see:

Parameters

-TenantId

Specifies the unique ID of the tenant on which to perform the operation. The default value is the tenant of the current user. This parameter applies only to partner users.

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

Outputs

Microsoft.Online.Administration.AccountSKU

The cmdlet returns AccountSKU objects that contain the following information:

  • AccountName. The name of the account this SKU belongs to.

  • AccountObjectId. The unique ID of the account this SKU belongs to.

  • AccountSkuId. The unique string ID of the account/SKU combination. This value should be used when assigning or updating licenses.

  • ActiveUnits. The number of active licenses.

  • ConsumedUnits. The number of licenses consumed.

  • ServiceStatus. The provisioning status of individual services belonging to this SKU.

  • SkuId. The unique ID for the SKU.

  • SkuPartNumber. The partner number of this SKU.

  • SubscriptionIds. A list of all subscriptions associated with this SKU. For the purposes of assigning licenses, all subscriptions with the same SKU will be grouped into a single license pool.

  • SuspendedUnits. The number of suspended licenses. These licenses are not available for assignment.

  • TargetClass. The target class of this SKU. Only SKUs with target class=user are assignable.

  • WarningUnits. The number of warning units.