Export a single vault with PowerShell
The PowerShell script export type has no vault setting. The script exports every vault that the application identity running it is allowed to export, and writes one file per vault. To export a single vault, scope the application identity to that vault only.
A vault is included in the export when one of these conditions is met:
The application identity has the Export permission on the vault.
The application identity has Can access user vaults enabled and the vault is a user vault.
With Can access user vaults enabled, every user vault of the instance is included in the export, even without the Export permission on them.
Create a dedicated application identity
Go to Administration, then under Management, click Application identities.
Click the Add icon at the top right.
Name the application identity after its purpose, for example Vault export.
Leave Can access user vaults cleared. This keeps user vaults out of the export.
Click Submit.
Copy the Application Secret and Application key, and save them in a secure place. They are only shown once.
Grant the export permission on the target vault only
Go to Administration, then under Management, click Vaults.
Click the Edit pencil icon next to the vault to export.
Open the Security tab, then the Edit tab.
Assign the application identity to the Vault owners role, or to a custom role that includes the Export permission.
Click Update to save.
Do not assign the application identity to any other vault. It can now export exactly one vault.
Generate and run the script
In Help & tools, click Export.
Select the PowerShell script export type, then Automatic.
Enter the Application Secret and Application key of the application identity.
Enter the Destination folder path. The folder must already exist.
Clear Obfuscate sensitive values if you need the passwords in readable form. This option is checked by default.
Choose to export in JSON or CSV. To protect the file, select JSON and check Encrypt with the master key, then enter a master password. Master password encryption is not supported for CSV exports.
Click Download.
Run the downloaded script using PowerShell 7 or later. The script installs the Devolutions.PowerShell module from the PowerShell Gallery, so the computer needs internet access.
The destination folder contains a single file named exported-entries-from-<vault_name>.json or exported-entries-from-<vault_name>.csv.
See also
Last updated
Was this helpful?