PowerShell module for KeePass
PoShKeePass is a PowerShell module that combines the ease of the PowerShell cli and the extensibility of the KeePassLib API to provide a powerful and easy to use management and automating platform for KeePass databases.
Install-Module -Name PoShKeePass
Please check out our Getting Started documentation on our wiki.
Please review the changelog document for a full history.
Added #160 - Default Database Configuration Profile.
-DatabaseProfileName
parameter is optional, and if not passed it will grab the default profile from the config. Update-KeePassDatabaseConfigurationProfile -DatabaseProfileName 'name' -Default
New-KeePassDatabaseConfigurationProfile -DatabaseProfileName 'name' -Default -DatabasePath '' other options
-DatabaseProfileName
parameter such as: Get-KeePassEntry -UserName 'aUser'
Added - #84 - Manage Notes properties on KPGroup Objects.
v.2.1.2.6 - Added - #158 - Added Update-KeePassDatabaseConfiguration function and tests.
v.2.1.2.5 - Fix - #157 - Set New-KPConnection function back to internal function and no longer exports.
Added Feature #29 - Can now manage the Expiration Time/Enabled State of groups and entry.
v.2.1.2.3 - Fix #64 - Review Message for grammar, clarified some messages as well.
v.2.1.2.2 - Fix #156 - New-KeePassDatabase will now error out if kdbx file already exists, instead of silently overwriting an existing file.
v.2.1.2.1 - Fix #149 - Breaking Change New-KeePassGroup and Update-KeePassGroup now return a KeePass PSObject via the ConvertTo-KPPsObject function.
-MasterKey
Parameter.KPEntry
and .KPGroup
.-AsPlainText
parameter on the Get-KeePassGroup
function, the call will still work but it will present a warning message. This is being removed as it is no longer necessary.Get-KeePassEntry
Now supports -Title
and -UserName
parameters also via pipeline.hashtable
method for performance over the New-Object
+ Add-Memeber
.Remove-KeePassDatabaseConfiguration
.-DatabaseProfileName
no longer needs to be specified to a KPPSObject pipeline recieving function.
Get-KeePassEntry -Title 'test' -DatabaseProfileName 'profile' | Remove-KeePassEntry
EncodeKeePassLib.ps1
script file as it is no longer in use.Register-ArgumentCompleter
.
2.39.1
2.34
and the latest apears to be much slower on some operations.2.34
all worked and appears to be backwards compatible. Also it does not upgrade the file format version..psm1
file.LastAccessTime
and LastModificationTime
properties to LastAccessTimeUtc
and LastModificationTimeUtc
to reflect that they are in UTC.Get-KeePassEntry
-AsPlainText
will decode the password to plaintext.
-WithCredential
parameter which adds a .Credential
property to the return Entry PS Object.
-AsPsCredential
parameter has been removed. The new method is better as it allows for multiple entries to be returned with thier cred objects instead of limiting it to 1 entry.ConvertTo-KPPSObject
and all returned objects the .FullPath
property now returns the true full path of the object. The ParentGroup
property still exists and can be used as an alteranative data source for any lost functionality.See the Known-Issue tag to get a list of known issues and their status.
Copyright (c) 2019 John Klann. All rights reserved.
Licensed under the MIT License.