Install-VamtProductKey

Install-VamtProductKey

Installs the specified product key on a product or a group of products.

構文

Parameter Set: Default
Install-VamtProductKey [-Products] <Product[]> [-ProductKey] <String> [[-Username] <String> ] [[-Password] <String> ] [-DbCommandTimeout <Int32> ] [-DbConnectionString <String> ] [ <CommonParameters>]

詳細説明

The Install-VamtProductKey cmdlet installs the specified product key on a single product or on a group of products. The cmdlet returns a value to indicate whether the product key is valid.

パラメーター

-DbCommandTimeout<Int32>

Indicates how long waits for a response from the database before timing out. The default value is 30 seconds. You can use the DbCommandTimeout parameter to change the timeout value.

エイリアス

なし

必須?

false

位置は?

named

既定値

なし

パイプライン入力を許可する

true (ByPropertyName)

ワイルドカード文字を許可する

false

-DbConnectionString<String>

Specifies the database where the product keys are installed. If no database connection string is provided, attempts to use the database that the user console used on the local computer. If does not find a database, it returns an error. You can find the connection string in the UI in the Preferences dialog box. On the menu bar, click View, and then click Preferences to open the Volume Activation Management Tool Preferences dialog box. The connection string is in the Database Settings section under Current connection string.

エイリアス

なし

必須?

false

位置は?

named

既定値

なし

パイプライン入力を許可する

true (ByPropertyName)

ワイルドカード文字を許可する

false

-Password<String>

Provides a password for password-protected environments.

エイリアス

なし

必須?

false

位置は?

5

既定値

なし

パイプライン入力を許可する

true (ByPropertyName)

ワイルドカード文字を許可する

false

-ProductKey<String>

Specifies the product key to be installed on the product or products.

エイリアス

なし

必須?

true

位置は?

2

既定値

なし

パイプライン入力を許可する

true (ByValue, ByPropertyName)

ワイルドカード文字を許可する

false

-Products<Product[]>

Specifies the product or products that the product key will be installed on.

エイリアス

なし

必須?

true

位置は?

1

既定値

なし

パイプライン入力を許可する

true (ByValue, ByPropertyName)

ワイルドカード文字を許可する

false

-Username<String>

Provides a user name for password-protected environments.

エイリアス

なし

必須?

false

位置は?

4

既定値

なし

パイプライン入力を許可する

true (ByPropertyName)

ワイルドカード文字を許可する

false

<CommonParameters>

このコマンドレットは次の共通パラメーターをサポートします。-Verbose、-Debug、-ErrorAction、-ErrorVariable、-OutBuffer、-OutVariable.詳細については、以下を参照してください。 about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216)。

Example

This command gets a specified product by using the fully qualified domain name and then installs the specified product key on that product.

PS C:\> $product = get-vamtproduct | where { $_.fullyqualifieddomainname -eq 'mymachine' }
PS C:\> install-vamtproductkey $product -productkey 12345-67890-12345-67890-12345

関連トピック

Get-VamtProductKey

Add-VamtProductKey