Import-VamtData
Imports the data from a specified .cilx or .cil file into a VAMT database.
Syntax
Products
Import-VamtData
-Products <Product[]>
[-DbConnectionString <String>]
[-DbCommandTimeout <Int32>]
[<CommonParameters>]
File
Import-VamtData
-InputFile <String>
[-DbConnectionString <String>]
[-DbCommandTimeout <Int32>]
[<CommonParameters>]
Description
The Import-VamtData cmdlet imports data from a specified .cilx or .cil file into a dep_nextref_vamt database. You can merge data from a previous version of dep_nextref_vamt into your database by exporting the data in the previous version to a .cil file and then importing the .cil file into the dep_nextref_vamt database. You can import data from a .cilx file to recover data from a backup file.
Examples
Example 1: Import data from a file
PS C:\> Import-VamtData -InputFile ".\vamtdata.cilx"
This command imports data from the specified file.
Example 2: Get and import data
PS C:\> $ProductInfo = Get-VamtProduct
PS C:\> $UpdatedProductInfo = Get-VamtConfirmationId -Products $productinfo
PS C:\> Import-VamtData -Products $UpdatedProductInfo
This command gets a product object, acquires the confirmation IDs for the products, and then imports the data to the database. Just acquiring the CIDs does not mean that the data is in the database. The data must be imported as shown in this example.
Parameters
-DbCommandTimeout
Indicates how long dep_nextref_vamt waits for a response from the database before timing out. The default value is 30 seconds.
Parameter properties
Type: | Int32 |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
(All)
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | True |
Value from remaining arguments: | False |
-DbConnectionString
Specifies the database that the data from the .cilx file or .cil file is imported into. If no database connection string is provided, dep_nextref_vamt attempts to use the database that the dep_nextref_vamt user console used on the local computer. If dep_nextref_vamt does not find a database, it returns an error. You can find the connection string in the dep_nextref_vamt 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.
Parameter properties
Type: | String |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
(All)
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | True |
Value from remaining arguments: | False |
-InputFile
Specifies the name of the file that contains the data to import into the dep_nextref_vamt database. You cannot use the InputFile parameter together with the Products parameter.
Parameter properties
Type: | String |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
File
Position: | Named |
Mandatory: | True |
Value from pipeline: | True |
Value from pipeline by property name: | True |
Value from remaining arguments: | False |
-Products
Specifies the product information to import. If the Products parameter is not included, all product information in the .cilx or .cil file is imported into the dep_nextref_vamt database. You cannot use the Products parameter together with the InputFile parameter.
Parameter properties
Type: | Product[] |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
Products
Position: | Named |
Mandatory: | True |
Value from pipeline: | True |
Value from pipeline by property name: | True |
Value from remaining arguments: | False |
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.