for loop for saving attachments

This commit is contained in:
2021-11-22 21:58:24 -05:00
parent 0045c20ac2
commit 1a2dee00de

View File

@@ -22,5 +22,5 @@ $organizations = $(convertfrom-json $(bw list organizations))
# I shouldn't need portwarden anymore since I will just use bw and loop through the items with attachments
# (convertfrom-json $(bw list items)) | where attachments
# foreach { }
# $itemsWithAttachments | % { $folder=$_.name; $itemID=$_.id; $_.attachments | % { bw get attachment $_.id --itemid $itemID --output "C:\Users\jgaunt\3D Objects\Bitwarden\$folder\$_.fileName" } }
# bw get attachment $attachmentID --itemid $itemID --output $file