Created
February 19, 2019 08:14
-
-
Save hertg/ebc4ccad482140e9ff57067de7897c32 to your computer and use it in GitHub Desktop.
Powershell script to convert a Dashlane JSON export to a 1Password CSV file
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$json = Get-Content -Path .\DashlaneExport.json | ConvertFrom-Json | |
$json.AUTHENTIFIANT | foreach { | |
$domain=$_.domain | |
$email=$_.email | |
if ($_.login) { | |
$login=$_.login | |
} else { | |
$login=$_.email | |
} | |
$note=$_.note | |
$password=$_.password | |
$secondaryLogin=$_.secondaryLogin | |
$title=$_.title | |
"`"$title`",`"$domain`",`"$login`",`"$password`",`"$note`",`"$email`",`"$secondaryLogin`"" | Out-File -encoding ASCII -FilePath "export.csv" -Append -Width 200; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment