Getting sub entries using the PS module

Getting sub entries using the PS module

avatar

Hi,
We now have our Powershell working correctly and I can pull entries from our Devolutions Password Server.
I have another question:
We have a folder structure that is something like: Folder1>subFolder1,subFolder2

In the above Folder1 doesn't have any password data, but the subfolders do. I have figured out how to pull Folder1, but I need a bit of help with how to call into the subFolders using the PowerShell modules.

Could you post an example of how to get password entries from the subFolders?

Thanks!

Brian

All Comments (7)

avatar

Hello Brian,

Once you are authenticated using the Devolutions.Server module, you could use the following to retrieve the entries. First, get the vault ID with:

(Get-DSVaults).body.data


id name
-- ----
00000000-0000-0000-0000-000000000000 Default
etc.

You can then retrieve the ID of the subfolder1 with:

$subfolder1 = get-dsentry -VaultID 00000000-0000-0000-0000-000000000000 -FilterValue "subfolder1"


You can then get the entries in that subfolder1:

$entries = Get-DSEntry -VaultID 00000000-0000-0000-0000-000000000000 -FolderID ($subfolder1.body.data.id)

You can view them with:

$entries.body.data


Best regards,

Richard Boisvert

avatar

thanks!

avatar

Hi,
I have one more question- my data has some hidden passwords. Get DS-Entry seems to bring back everything except the password when I call it like this:

$entry = Get-DSEntry -VaultID <sub folder with entries in it id (guid)> -EntryId <Entry Id guid >
Echo $entry

I can see most of the data with the above call when I Echo it in PS. Am I calling it wrong or is this a setting that needs to be adjusted?

thanks!

avatar

Hello,

To get the password from an entry, please use the Get-DSEntrySensitiveData cmdlet.

$senstivedata = Get-DSEntrySensitiveData <Entry Id guid >

Let me know if that helps.

Best regards,

Érica Poirier

avatar

Hi I can get data back with that call but it seems to be encoded. what is the proper way to decode the data?

thanks!

avatar

Hello,

Here is the method that will decode the password from a Credential entry.

$password = (Get-DSEntrySensitiveData -EntryId $entryID).Body.data
$password.credentials.password


Best regards,

Érica Poirier

avatar

That's perfect! thank you!