shellfyred / PoShKeePass

PowerShell module for KeePass

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

PowerShell 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.

Features

  1. Database Configuration Profiles - Supports mutliple databases and authentication options.
  2. 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.
  3. 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.

Getting Started

Install

Install-Module -Name PoShKeePass

Documentation

Please check out our Getting Started documentation on our wiki.

Important Notes & Reminders

  1. Please always keep up to date backups of your KeePass database files .kdbx and .key files.
  2. The module uses the KeePassLib 2.3.x which is embedded in the module file.
  3. 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.
  4. 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.

Changelog

Please review the changelog document for a full history.

Changelog PoShKeePass v2.0.4.0

  • #108 Fixed bug by capturing PSCredential to MasterKey variable.

Changelog PoShKeePass v2.0.3.9

  1. #92 Added PowerShell Format XML File for creating PowerShell Object views.
  2. #90 Updated default properties returned for KeePass Entries to Include the Notes Property. Did this via the new format XML file.
  3. #67 Consolidated KeePass database connection and authentication functions. Thanks @Ninjigen for your help on this.
  4. #67 Now supports authentication using all three methods as a combination: MasterKey, KeyFile, WindowsAccount.
  5. #100 Fixed bug when using the -MasterKey options on and of the functions. The proper variable is now removed.
  6. #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.
  7. Moved exported functions to the Module Manifest.

Changelog PoShKeePass v2.0.3.1

Issue #79 - Added support Icon Management

  • Updated New and Update 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 the KeePassLib.PwIcon Enum.

Known Issues

See the Known-Issue tag to get a list of known issues and their status.

Contributing

  • 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.

Shout-Outs

  • 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.

License

Copyright (c) John Klann, Christian Lehrer. All rights reserved.

Licensed under the MIT License.

About

PowerShell module for KeePass

License:MIT License


Languages

Language:PowerShell 100.0%