Get-VamtProductKey
Get-VamtProductKey
Retrieves product-key records from a VAMT database.
Sintaxis
Parameter Set: Default
Get-VamtProductKey [-DbCommandTimeout <Int32> ] [-DbConnectionString <String> ] [ <CommonParameters>]
Descripción detallada
The Get-VamtProductKey cmdlet retrieves product key records from a database. You can use this cmdlet to retrieve a single product key or a list of product keys. The results are saved to a file, or a Microsoft.Licensing.VolumeActivation.Product object is returned.
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 or list of product keys is retrieved from. 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 |
<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 gets a list of MAK keys.
PS C:\> $makkeys = get-vamtproductkey | where { $_.keytype -eq 'mak' }