SecretManagement extension for BitWarden

NOTE: This is not a maintained project and it's specifically not maintained by BitWarden. I work on it in my free time because I use BitWarden personally.

**Special Thanks to @TylerLeonhardt for publishing a baseline for this module extention ** **Please check out his LastPass Extention **

Prerequisites

Download and Install

You can get the SecretManagement module from the PowerShell Gallery:

Using PowerShellGet v2:

Install-Module Microsoft.PowerShell.SecretManagement -AllowPrerelease

Using PowerShellGet v3:

Install-PSResource Microsoft.PowerShell.SecretManagement -Prerelease

Installation

You an install this module from the PowerShell Gallery:

Using PowerShellGet v2:

Install-Module SecretManagement.BitWarden

Using PowerShellGet v3:

Install-PSResource SecretManagement.BitWarden

Registration

Once you have it installed, you need to register the module as an extension:

Register-SecretVault -ModuleName SecretManagement.BitWarden

Optionally, you can set it as the default vault by also providing the -DefaultVault parameter.

At this point, you should be able to use Get-Secret, Set-Secret and all the rest of the SecretManagement commands!

outputType

(Accept: Default,Detailed,TOTP)

By default, regular credentials are returned as string (for notes) and PSCredential (for credentials) Setting this parameter to Detailed will always return a hashtable. Effectively, this mean that the URL / Notes parameter of the regular credential will be exposed. TOTP code is for Two-factor authentication of compatible websites