New-MsolLicenseOptions

建立 License Options 物件。

Syntax

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

Description

New-MsolLicenseOptions Cmdlet 會建立 License Options 物件。 此 Cmdlet 會在使用 Set-MsolUserLicense Cmdlet 指派授權時停用特定服務方案。

範例

範例 1:建立授權選項物件

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

此命令會建立授權選項物件。 這個物件可用於 New-MsolUserSet-MsolUserLicense Cmdlet 中的授權選項參數。

參數

-AccountSkuId

指定這些選項的授權或帳戶 SKU 識別碼。

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

-DisabledPlans

指定要在指派此授權給使用者時停用的服務方案清單。

Type:List<T>[String]
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False