Devolutions Cloud powershell entry retrieval

Devolutions Cloud powershell entry retrieval

avatar

I am new to using the powershell module and was wondering how I can retrieve the password from password hub for scripting.

All Comments (5)

avatar

Hello,

Thank you for contacting us on that matter!

You can follow this guide to get connected to the Hub: https://helphub.devolutions.net/hub_hub_powershell_module.html

Once connected and once you have the Vault ID and the Entry ID, you can run the following to get the entry and the retrieve the username and the password:

$entry = get-hubentry -VaultId "ID of the vault" -EntryId "ID of the entry"
$entry.Connection.Credentials.UserName
$entry.Connection.Credentials.Password


To retrieve the vault ID and the entry ID more quickly, you could go to your hub in your browser, go to the entry, and then get the vault and entry ID from the URL:

forum image

The first one is the vault ID, the second one is the entry ID.

Best regards,

Richard Boisvert

avatar

This worked well and thanks for the help. How can I grant my application user access to my personal vault so I can pull my username and password for a particular entry?

avatar

Hello,

By personal vault, do you mean your Hub Personal or your user vault in your Hub Business? If it's the later, you can allow the application user to access user vaults with this app user setting.

forum image

Have a good day!

Maxime Morin

avatar

I tried that setting and it gave me an access denied for my user vault in Hub Business.

avatar

What's your Hub Powershell module version? We had an issue related to that recently. I believe you need to have 2022.6.23 or later.
PowerShell Gallery | Devolutions.Hub 2022.7.4

Maxime Morin