added some output for user
This commit is contained in:
@@ -17,13 +17,14 @@ if ($sessionKey -eq $null) {
|
||||
}
|
||||
|
||||
#convertfrom-json $(bw list organizations --session $sessionKey)
|
||||
|
||||
Write-Host "Exporting vault to both CSV and JSON files."
|
||||
bw export $password --output "$PSScriptRoot\Bitwarden User $username Export $dateTime.csv" --format csv --session $sessionKey
|
||||
bw export $password --output "$PSScriptRoot\Bitwarden User $username Export $dateTime.json" --format json --session $sessionKey
|
||||
|
||||
Write-Host "Looking for Organizations..."
|
||||
$organizations = $(convertfrom-json $(bw list organizations))
|
||||
Write-Host "Found $(($organizations | measure).count) Organiztaions."
|
||||
|
||||
# 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
|
||||
# $itemsWithAttachments | % { $folder=$_.name; $itemID=$_.id; $_.attachments | % { bw get attachment $_.id --itemid $itemID --output "C:\Users\jgaunt\3D Objects\Bitwarden\$folder\$_.fileName"; sleep -Milliseconds 500 } }
|
||||
|
||||
Reference in New Issue
Block a user