added sample commands for attachments

This commit is contained in:
2021-11-22 20:23:54 -05:00
parent 16ea1a4222
commit 0045c20ac2

View File

@@ -17,4 +17,10 @@ if ($sessionKey -eq $null) {
bw export $password --output "C:\users\jgaunt\3D Objects\Bitwarden User $username Export $dateTime.csv" --format csv --session $sessionKey
bw export $password --output "C:\users\jgaunt\3D Objects\Bitwarden User $username Export $dateTime.json" --format json --session $sessionKey
$organizations = $(convertfrom-json $(bw list organizations))
$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 { }
# bw get attachment $attachmentID --itemid $itemID --output $file