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>

이 cmdlet은 일반 매개 변수 -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