- Knowledge base
- powerVault
- Troubleshooting
Open-VaultConnection for Vault 2026 fails with "Failed to login to Vault!" when called in Windows PowerShell
Description
When calling Open-VaultConnection to connect to Vault 2026 in a PowerShell session like ISE or VsCode it fails with
Failed to login to Vault! Eine Ausnahme vom Typ "Autodesk.Connectivity.WebServices.LicensingSDKUntrustedException" wurde ausgelöst.
Cause
Vault 2026 uses PowerShell 7, but Windows only installs PowerShell 5.1 per default.
Solution
- Install PowerShell 7 or newer as shown here: installing-powershell-on-windows(Microsoft)
- Install VsCode: VsCode Download(Microsoft)
- Install PowerShell module for VsCode as shown here: Install PowerShell for VsCode(Microsoft)