New-MsolLicenseOptions
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 Set-MsolUserLicense cmdlet.
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.
Parameters
-AccountSkuId
Specifies the license, or account SKU ID, for these options.
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-DisabledPlans
Specifies a list of service plans to disable when assigning this license to the user.
Type: | List<T>[String] |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |