- Knowledge base
- powerVault
- How-to
How to get an ACR file from the VaultThickClientLink property
Issue
An ACR file needs to be generated. ACR files are file links that open the Vault Client and automatically navigate to the file.
Solution
With powerVault 24.0.4 we introduced 2 new properties containing the Vault Thin Client and Thick Client hyperlinks. In order to generate an ACR file that automatically opens the Vault Client and navigates to the file you can use the following code. This example downloads the .ACR file to "C:\Temp":
Import-Module powerVault
Open-VaultConnection
$file = Get-VaultFile -Properties @{Name="Combustion Stage.iam"}
$thickClientHyperLink = $file.ThickClientHyperLink.AbsoluteUri
$downloadLocation = "C:\Temp\$($file._Name).acr"
Invoke-WebRequest $thickClientHyperLink -OutFile $downloadLocation
See Also
Invoke-WebRequest (Microsoft)