# Open-VaultConnection Connects to the specified Vault Server. ## Syntax ```powershell Open-VaultConnection [-Vault ] [-Server ] [-User ] [-Password ] ] ``` ## Parameters | Type | Name | Description | Default value | Optional | |--------|----------|-------------------------------------------------------------------------|---------------|----------| | String | Vault | The name of the Vault for which the connection should be made | Vault | yes | | String | Server | The Ip or hostname of the server on which the Vault server is installed | localhost | yes | | String | User | A valid user, that is able to login to the target Vault | Administrator | yes | | String | Password | The users password | `""` | yes | ## Return type **empty** ← On failure the Exception/ErrorMessage can be accessed using [\$Error](). ## Remarks After the Cmdlet successfully established a connection to Vault, the following PowerShell variables are created and let you communicate directly to Vault through it's API: - [$vault]() - [$vaultconnection]() - [$vaultExplorerUtil]() The cmdlet can be invoked **without arguments** in applications that are already connected to Vault (for example within the Vault Explorer), so that the mentioned PowerShell variables are exposed for the *existing Vault connection*.