Export (0) Print
Expand All

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

Initialize-VamtData

Initializes the VAMT database and removes all the data.

Syntax

Parameter Set: Default
Initialize-VamtData [[-PreserveKeys]] [-Confirm] [-DbCommandTimeout <Int32> ] [-DbConnectionString <String> ] [ <CommonParameters>]




Detailed Description

The Initialize-VamtData cmdlet restores a VAMT database to its initial state and removes all the data from the database. You can preserve the product keys in the database if you need them. You can also suppress the prompt that asks you to confirm the database initialization.

Parameters

-Confirm

Suppresses the prompt that asks you to confirm the database initialization. If the Confirm parameter is not supplied, you will be prompted to confirm the action.


Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

true (ByPropertyName)

Accept Wildcard Characters?

false

-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 to be initialized. 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

-PreserveKeys

Indicates that the product keys in the VAMT database will be retained when the database is initialized.


Aliases

none

Required?

false

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 initializes the database, but retains the product keys.


PS C:\> initialize-vamtdata -preservekeys

Related topics

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