Get Password List
Get an existing password list item.
- Connect to the configuration web service.
- Specify the unique identifier of the required password list.
- The user must have read permissions to the item, the user must also have the decrypt password lists server permission.
Code Sample
# Get the item.
$item = $xia.GET_Item(1234, 0);
# Display the password entries.
foreach($passwordEntry in $item.PasswordEntries.PasswordEntry)
{
Write-Host $passwordEntry.DisplayName;
Write-Host "Description: $($passwordEntry.Description)";
Write-Host "Entry Type: $($passwordEntry.EntryTypeString)";
Write-Host "Account Name: $($passwordEntry.AccountName)";
Write-Host "Password: $($passwordEntry.PasswordPlainText)";
Write-Host;
}
Custom Password List Entry Types
When using custom password list entry types the entry type above will be displayed as "Custom". To display the full display name of the custom type replace this line with the following.
Write-Host "Entry Type: $($xia.GET_PasswordListEntryTypeDisplayName($passwordEntry))";