How to download a file via Vault API

Sample code how to use the AcquireFiles function

Description

The easiest way to download files via Vault API is to use the FileManager.AcquireFiles function. It allows to easily change what versions are gathered and doesn't require any complicated boilerplate code to handle filestreams or downloadtickets.

The attached module contains a sample how you could use the AquireFiles function

Remarks

The commandlet expects a $vault and a $vaultconnection object. Those are generated by the powerVault Open-VaultConnection cmdlet.

Download