Faster way to retrieve multiple passwords at once
I'm trying to find the easiest/fastest way to retrieve multiple items with a password at once in PowerShell.
Right now I'm doing the following:
- List all of the items in a vault
- $All1PassItems += Invoke-Expression "$OnePassAppPath list items --vault $Vault 2>&1" | ConvertFrom-Json (this is fast)
- Run a loop that retrieves the password for each item
- $PWitems = Invoke-Expression "$OnePassAppPath get item $($ItemUUID) --fields username,password,notesPlain,title,url" -ErrorAction Stop | ConvertFrom-Json (this in a loop is slow)
This works well and it gives me what I need, but it's super slow because it has to run a query for each individual item. Is there a more efficient way to do this?
_Extension Version: Not Provided
OS Version: Not Provided
Sync Type: Not Provided