Import-VamtData

Windows Server 2012 R2 and Windows 8.1

Import-VamtData

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

구문

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

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




자세한 설명

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

매개 변수

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


별칭

없음

필수 여부

false

위치

named

기본값

없음

파이프라인 입력 적용 여부

true (ByPropertyName)

와일드카드 문자 허용 여부

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


별칭

없음

필수 여부

false

위치

named

기본값

없음

파이프라인 입력 적용 여부

true (ByPropertyName)

와일드카드 문자 허용 여부

false

-InputFile<String>

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


별칭

없음

필수 여부

true

위치

1

기본값

없음

파이프라인 입력 적용 여부

true (ByValue, ByPropertyName)

와일드카드 문자 허용 여부

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


별칭

없음

필수 여부

true

위치

1

기본값

없음

파이프라인 입력 적용 여부

true (ByValue, ByPropertyName)

와일드카드 문자 허용 여부

false

<CommonParameters>

이 cmdlet은 일반 매개 변수 -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer 및 -OutVariable을 지원합니다. 자세한 내용은 다음을 참조하세요. about_CommonParameters(http://go.microsoft.com/fwlink/p/?LinkID=113216).

예제

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

관련 항목

커뮤니티 추가 항목

추가
표시: