hi,
When creating a new vault we want to set the credential-configuration of the vault to 'My personal credentials' (instead of 'Username and password').

How can this be done with PowerShell? or is it possible to set this in Devolutions Server (as default for every new vault)?
KR
G.
Hello G.,
Thank you for your question.
I can confirm that there are currently no Devolutions Server setting to automatically set My personal credentials as the default credential configuration for every newly created vault.
However, this can be done with PowerShell after the vault is created by updating the root entry of the vault. Here is an example:
# Create the vault
$vaultName = "My new vault"
New-DSVault -Name $vaultName
# Retrieve the vault
$vault = Get-DSVault -All | Where-Object { $_.Name -eq $vaultName } | Select-Object -First 1
# Get the root entry of that vault
$root = Get-DSRootSession -VaultID $vault.Id
# Retrieve the root entry as an RDM connection object
$rootEntry = Get-DSEntry -EntryId $root.Id -VaultID $vault.Id -AsRDMConnection
# Set credential configuration to "My personal credentials"
$rootEntry.CredentialConnectionID = [Devolutions.Generated.Models.Connection]::MyDefaultCredentialConnectionID
# Save the change back to Devolutions Server
Update-DSEntryBase -FromRDMConnection $rootEntryPlease make sure the PowerShell session is already authenticated to your Devolutions Server instance and that the account running the script has sufficient permissions to create and modify vaults.
Best regards,