Set-WssMsoUserLicense
Set-WssMsoUserLicense
Assigns licenses to an account in .
構文
Parameter Set: Default
Set-WssMsoUserLicense [-WssUserName] <String> [[-License] <MSOLicense[]> ] [ <CommonParameters>]
詳細説明
The Set-WssMsoUserLicense cmdlet assigns licenses to an online service account in .
パラメーター
-License<MSOLicense[]>
Specifies an array of licenses as MSOLicense objects. The cmdlet assigns the licenses that you specify to a user account. To obtain MSOLicense objects, use the Get-WssMsoSubscription cmdlet to get subscription information. Subscription information contains the MSOLicenseSuite array that refers to MSOLicense objects.
エイリアス |
なし |
必須? |
false |
位置は? |
2 |
既定値 |
なし |
パイプライン入力を許可する |
True (ByPropertyName) |
ワイルドカード文字を許可する |
false |
-WssUserName<String>
Specifies the name of the user account to which you want the licenses assigned.
エイリアス |
なし |
必須? |
true |
位置は? |
1 |
既定値 |
なし |
パイプライン入力を許可する |
True (ByValue, ByPropertyName) |
ワイルドカード文字を許可する |
false |
<CommonParameters>
このコマンドレットは次の共通パラメーターをサポートします。-Verbose、-Debug、-ErrorAction、-ErrorVariable、-OutBuffer、-OutVariable.詳細については、以下を参照してください。 about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216)。
入力
入力型は、コマンドレットにパイプできるオブジェクトの型です。
System.String
WssUserName
Type: System.String
Description: local network account name of user
出力
出力型は、コマンドレットによって生成されるオブジェクトの型です。
例
Example 1: Store a license for a user
The first command uses the Get-WssMsoSubscription cmdlet to get subscription information, and then stores it in the $Subscribe variable.
The second command assigns a license, contained in the object stored in the $Subscribe variable, to the account named EvanNarvaez. The command uses standard array notation to access the first member of the MSOLicenseSuite array, and refer to the associated MSOLicense object.
PS C:\> $Subscribe = Get-WssMsoSubscription
PS C:\> Set-WssMSOUserLicense -WssUserName "EvanNarvaez" -License $Subscribe.MSOLicenseSuite[0].MSOLicense