Add-VamtProductKey

Add-VamtProductKey

Adds the user-specified product key to a VAMT database.

Sintaxis

Parameter Set: Default
Add-VamtProductKey [-ProductKey] <String> [-DbCommandTimeout <Int32> ] [-DbConnectionString <String> ] [ <CommonParameters>]

Descripción detallada

The Add-VamtProductKey cmdlet adds the user-specified product key to a database. If a list of product keys must be added to a database, you can use this cmdlet in a script to add the product keys.

Parámetros

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

Alias

ninguno

¿Requerido?

false

¿Posición?

named

Valor predeterminado

ninguno

¿Aceptar canalización?

true (ByPropertyName)

¿Aceptar caracteres comodín?

false

-DbConnectionString<String>

Specifies the database that the product key is added to. 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.

Alias

ninguno

¿Requerido?

false

¿Posición?

named

Valor predeterminado

ninguno

¿Aceptar canalización?

true (ByPropertyName)

¿Aceptar caracteres comodín?

false

-ProductKey<String>

Specifies the product key to be added to the database.

Alias

ninguno

¿Requerido?

true

¿Posición?

1

Valor predeterminado

ninguno

¿Aceptar canalización?

true (ByValue, ByPropertyName)

¿Aceptar caracteres comodín?

false

<CommonParameters>

Este cmdlet admite los siguientes parámetros comunes: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer y -OutVariable. Para obtener más información, consulte about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216).

Ejemplos

Example

This command adds a product key to the specified database.

PS C:\> add-vamtproductkey -productkey 12345-456789-12345-456789-12345 -dbConnectionstring "data source=.\adk;initial catalog=test;integrated security=true;multipleactiveresultsets=true"

Temas relacionados

Get-VamtProductKey

Install-VamtProductKey