Initialize-VamtData

Initialize-VamtData

Initializes the VAMT database and removes all the data.

Syntax

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




Detailed Description

The Initialize-VamtData cmdlet restores a 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

-DbCommandTimeout<Int32>

Indicates how long waits for a response from the database before timing out. The default value is 30 seconds.


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


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

-Confirm

Prompts you for confirmation before running the cmdlet.


Required?

false

Position?

named

Default Value

false

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not run.


Required?

false

Position?

named

Default Value

false

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

<CommonParameters>

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see    about_CommonParameters.

Examples

Example 1: Initialize database and preserve keys

This command initializes the database, but retains the product keys.


PS C:\> Initialize-VamtData -PreserveKeys

Related topics

Community Additions

ADD
Show: