PSKeePass / PoShKeePass

PowerShell module for KeePass
MIT License
256 stars 58 forks source link

Unable to use module with master password #206

Closed mvrk69 closed 2 years ago

mvrk69 commented 2 years ago

Hi,

I've created the database configuration and specified that i wanted to use MasterKey (password) instead of a key file:

PS /home/myuser> New-KeePassDatabaseConfiguration -DatabaseProfileName 'myuser' -Default -DatabasePath "/home/myuser/Documents/myuser.kdbx" -UseMasterKey WARNING: The specified KeePass Configuration does not exist. WARNING: The specified KeePass Configuration does not exist.

But when i try to get an entry i get this error:

PS /home/myuser> Get-KeePassEntry -Title 'vSphere Web Client' -AsPlainText WARNING: The specified KeePass Configuration does not exist. MetadataError: The variable cannot be validated because the value is not a valid value for the Database variable.

Get-Item: Cannot bind argument to parameter 'Path' because it is an empty string.

MethodInvocationException: Exception calling "Open" with "3" argument(s): "Empty path name is not legal. (Parameter 'path')"

Exception: InvalidDatabaseConnectionException : The database is not open.

Anyone has any idea what might be the problem?

mvrk69 commented 2 years ago

i see now the module is not compatible with pwsh7 and linux