powerjobs_processor:jobprocessor:code_reference:cmdlets:open-vaultconnection

Open-VaultConnection

Opens a connection to the vault that is stated in the parameters.
powerJobs reuses the Open-VaultConnection of powerVault, but because its behaviour is different, powerJobs adds additional functionality (e.g. loads the JobProcessor.exe.config, special login for JobProcessor, $vaultExplorerUtil variable).

Open-VaultConnection [-Vault <string>] [-Server <string>] [-User <string>] [-Password <string>] <CommonParameters>]

Type Name Description Default value Optional
String Vault The name of the vault for which the connection should be madeVaultyes
String ServerThe Ip or hostname of the server on which the vault server is installedlocalhostyes
String UserA valid user, that is able to login to the target vaultAdministratoryes
String PasswordThe users password““yes

empty ← On failure the Exception/ErrorMessage can be accessed using $Error.

In order to debug a job the following powershell variables can be used when the cmdlet is able to successfully establish a connection to Vault: