Export (0) Print
Expand All

Install-VamtProductKey

Windows Server 2012 R2 and Windows 8.1

Install-VamtProductKey

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

Syntax

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




Detailed Description

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.

Parameters

-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.


Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

true (ByPropertyName)

Accept Wildcard Characters?

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.


Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

true (ByPropertyName)

Accept Wildcard Characters?

false

-Password<String>

Provides a password for password-protected environments.


Aliases

none

Required?

false

Position?

5

Default Value

none

Accept Pipeline Input?

true (ByPropertyName)

Accept Wildcard Characters?

false

-ProductKey<String>

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


Aliases

none

Required?

true

Position?

2

Default Value

none

Accept Pipeline Input?

true (ByValue, ByPropertyName)

Accept Wildcard Characters?

false

-Products<Product[]>

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


Aliases

none

Required?

true

Position?

1

Default Value

none

Accept Pipeline Input?

true (ByValue, ByPropertyName)

Accept Wildcard Characters?

false

-Username<String>

Provides a user name for password-protected environments.


Aliases

none

Required?

false

Position?

4

Default Value

none

Accept Pipeline Input?

true (ByPropertyName)

Accept Wildcard Characters?

false

<CommonParameters>

This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see    about_CommonParameters (http://go.microsoft.com/fwlink/p/?LinkID=113216).

Examples

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

Related topics

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2015 Microsoft