Export (0) Print
Expand All

Import-VamtData

Windows Server 2012 R2 and Windows 8.1

Updated: October 17, 2013

Applies To: Windows 8.1, Windows PowerShell 4.0, Windows Server 2012 R2

Import-VamtData

Imports the data from a specified .cilx or .cil file into a VAMT database.

Syntax

Parameter Set: File
Import-VamtData [-InputFile] <String> [-DbCommandTimeout <Int32> ] [-DbConnectionString <String> ] [ <CommonParameters>]

Parameter Set: Products
Import-VamtData [-Products] <Product[]> [-DbCommandTimeout <Int32> ] [-DbConnectionString <String> ] [ <CommonParameters>]




Detailed Description

The Import-VamtData cmdlet imports data from a specified .cilx or .cil file into a VAMT database. You can merge data from a previous version of VAMT into your database by exporting the data in the previous version to a .cil file and then importing the .cil file into the VAMT database. You can import data from a .cilx file to recover data from a backup file.

Parameters

-DbCommandTimeout<Int32>

Indicates how long VAMT 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 that the data from the .cilx file or .cil file is imported into. If no database connection string is provided, VAMT attempts to use the database that the VAMT user console used on the local computer. If VAMT does not find a database, it returns an error. You can find the connection string in the 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.


Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

true (ByPropertyName)

Accept Wildcard Characters?

false

-InputFile<String>

Specifies the name of the file that contains the data to import into the VAMT database. You cannot use the InputFile parameter together with the Products parameter.


Aliases

none

Required?

true

Position?

1

Default Value

none

Accept Pipeline Input?

true (ByValue, ByPropertyName)

Accept Wildcard Characters?

false

-Products<Product[]>

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 VAMT database. You cannot use the Products parameter together with the InputFile parameter.


Aliases

none

Required?

true

Position?

1

Default Value

none

Accept Pipeline Input?

true (ByValue, 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.

Examples

Example 1

This command imports data from the specified file.


PS C:\> import-vamtdata -inputfile .\vamtdata.cilx

Example 2

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.


PS C:\> $productinfo = get-vamtproduct
PS C:\> $updatedproductinfo = get-vamtconfirmationid -products $productinfo
PS C:\> import-vamtdata -products $updatedproductinfo

Related topics

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft