New-​Msol​License​Options

Creates a License Options object.

Syntax

New-MsolLicenseOptions
   -AccountSkuId <String>
   [-DisabledPlans <System.Collections.Generic.List`1[System.String]>]
   [<CommonParameters>]

Description

The New-MsolLicenseOptions cmdlet creates a License Options object. This cmdlet disables specific service plans when assigning a user a license using the Add-MsolUser and Set-MsolUserLicense cmdlets.

Examples

Example 1: Create license options object

PS C:\> New-MsolLicenseOptions -AccountSkuId Contoso:BPOS_STANDARD -DisabledPlans EXCHANGE_STANDARD

This command creates a license options object. This object can be used for the license options parameter in the New-MsolUser or Set-MsolUserLicense cmdlets.

Required Parameters

-AccountSkuId

Specifies the license, or account SKU ID, for these options.

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

Optional Parameters

-DisabledPlans

Specifies a list of service plans to disable when assigning this license to the user.

Type:System.Collections.Generic.List`1[System.String]
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False