PowerShell script export type

Use a PowerShell script to export your data in JSON or CSV format. This method is only available with Devolutions Hub Business and requires PowerShell 7 or later.

First choose whether you want to automatically or manually fill in your information in the PowerShell script.

Automatically fill in the information

  1. In Help & tools, click on Export.

    Help  tools – Export
    Help & tools – Export
  2. Select the PowerShell script export type.

    PowerShell Script export type
    PowerShell Script export type
  3. Next, create an Application identity with the right to export the desired vaults (see Roles and Permissions for more details). Make sure to enable Can access user vaults, otherwise user vaults will not be exportable.

  4. Select the Automatic option.

    Automatic option
    Automatic option
  5. Enter your application identity's Application secret and Application key in the corresponding fields.

  6. Enter the Destination folder path. This is where your data will be exported.

  7. Choose to export in JSON or CSV.

  8. Click Download.

  9. Run the downloaded script using PowerShell 7.

Your data has been exported to the destination folder.

Manually fill in the information

  1. In Help & tools, click on Export.

    Help  tools – Export
    Help & tools – Export
  2. Select the PowerShell script export type.

    PowerShell Script export type
    PowerShell Script export type
  3. Create an application identity and assign it the Manage vaults permission for the desired vault.

  4. Select the Manual option.

    Manual option
    Manual option
  5. Choose to export in JSON or CSV.

  6. Copy and paste the script in a PowerShell file (.ps1).

  7. In your copied script, change the variables with the appropriate information. See the table below.

    Variable Description
    $url Enter your Devolutions Hub Business URL. This variable is automatically filled in, but it is still possible to change it.
    $appSecret Enter the application user's Application secret.
    $appKey Enter the application user's Application key.
    $pathToExportedFolder Enter the Destination folder path. This is where your data will be exported.
    Variables in PowerShell
    Variables in PowerShell
  8. Run the script using PowerShell 7.

Your data has been exported to the destination folder.

Devolutions Forum logo Share your feedback