Issue

When the option to enforce a working directory is set in Vault the Save-VaultFile Cmdlet without the "-DownloadDirectory" parameter does not download the file to the Vault workspace. Instead the file is downloaded to the User Directory "C:\Users\<USER>\Documents.."


Cause

It is possible that there is still a reference to the path pointing to the User documents and powerVault is looking at that when downloading a file


Solution

To avoid this issue you can execute following code once to set the working directory:

$vaultConnection.WorkingFoldersManager.SetWorkingFolder("Path")

This needs to be executed only once.