Initialize-VamtData

Initializes the VAMT database and removes all the data.

Syntax

Initialize-VamtData
          [-PreserveKeys]
          [-DbConnectionString <String>]
          [-Confirm]
          [-DbCommandTimeout <Int32>]
          [<CommonParameters>]

Description

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

Examples

Example 1: Initialize database and preserve keys

PS C:\>Initialize-VamtData -PreserveKeys

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

Parameters

-Confirm

Prompts you for confirmation before running the cmdlet.

Type:SwitchParameter
Position:Named
Default value:False
Required:False
Accept pipeline input:True
Accept wildcard characters:False

-DbCommandTimeout

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

Type:Int32
Position:Named
Default value:None
Required:False
Accept pipeline input:True
Accept wildcard characters:False

-DbConnectionString

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

Type:String
Position:Named
Default value:None
Required:False
Accept pipeline input:True
Accept wildcard characters:False

-PreserveKeys

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

Type:SwitchParameter
Position:Named
Default value:None
Required:False
Accept pipeline input:True
Accept wildcard characters:False