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.
- Database Configuration Profiles - Supports mutliple databases and authentication options.
- Getting, Creating, Updating, and Removing KeePass Entries and Groups - All of these perform as much automatic database authentication as possible using the database configuration profile. For databases that use a masterkey (password) it will prompt for it.
- Generating KeePass Passwords - Supports most character sets and advanced keepass options. Also supports creating password profiles that can be specified to create a new password with the same rule set.
Install-Module -Name PoShKeePass
Please check out our Getting Started documentation on our wiki.
- Please always keep up to date backups of your KeePass database files .kdbx and .key files.
- The module uses the KeePassLib 2.3.x which is embedded in the module file.
- This module was built and tested in PowerShell 5 on Windows 10 but should work in PowerShell 4 and Windows 8.1 and Server 2012 R2 and up. It may work in some earlier versions but is currently untested and not supported. If you come across issues create an issue and I will look into fixing it or create a pull request.
- There is an underlying framework that I wrote into the module to make all of the api calls that I will eventually expose for advanced scripting.
Please review the changelog document for a full history.
- #108 Fixed bug by capturing PSCredential to MasterKey variable.
- #92 Added PowerShell Format XML File for creating PowerShell Object views.
- #90 Updated default properties returned for KeePass Entries to Include the Notes Property. Did this via the new format XML file.
- #67 Consolidated KeePass database connection and authentication functions. Thanks @Ninjigen for your help on this.
- #67 Now supports authentication using all three methods as a combination: MasterKey, KeyFile, WindowsAccount.
- #100 Fixed bug when using the
-MasterKey
options on and of the functions. The proper variable is now removed. - #95 Added internal function
Restore-KPConfigurationFile
. This is implemented to restore your configuration file from a previous version of the module, when updating from PSGallery. - Moved exported functions to the Module Manifest.
- Updated
New
andUpdate
Entry and Group functions to support setting and updating Icon values. - Update
ConvertTo-KPPSObject
to output the IconId. - Added Pester Tests for adding and updating Icons.
- Update
Get-KPDynamicParameters
to support creating the Icon dynamic param from theKeePassLib.PwIcon
Enum.
See the Known-Issue tag to get a list of known issues and their status.
- If you are insterested in fixing issues and contributing directly to the code base, please see the documentation on How to Contribute.
- If you come across a bug or have a feature request feel free to create an issue with the appropriate label.
- PSKeePass would like to thank Jason Fossen for his initial work with KeePass in PowerShell.
- PSKeePass would like to thank Andrzej Pilacik (aka @cypisek77) for his review and feedback on documentation and over all rubber ducking.
Copyright (c) John Klann, Christian Lehrer. All rights reserved.
Licensed under the MIT License.