Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Errors with databases linked to Windows Accounts #79

Open
fullenw1 opened this issue Mar 20, 2023 · 0 comments
Open

Errors with databases linked to Windows Accounts #79

fullenw1 opened this issue Mar 20, 2023 · 0 comments

Comments

@fullenw1
Copy link

When I register a database with a Windows Account in addition to the Master password I get this output:

PS> Register-KeepassSecretVault -Path 'C:\MyPath\MyKeepass.kdbx' -Name MyKeepass -UseWindowsAccount -UseMasterPassword
WARNING: [13:52:29][Test-SecretVault] Exception calling ".ctor" with "0" argument(s): "Operation is not supported on this platform."
WARNING: [13:52:29][Test-SecretVault] Unable to open connection to the database
Register-KeepassSecretVault : A parameter cannot be found that matches parameter name 'Name'.
At line:1 char:1
+ Register-KeepassSecretVault -Path 'C:\MyPath\ ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidArgument: (:) [Register-KeepassSecretVault], ParameterBindingException
    + FullyQualifiedErrorId : NamedParameterNotFound,Register-KeepassSecretVault

If I do the same with a database which does not need a Windows Account authentication, I get no error.

Furthermore, despite the error message the database seems to be registered anyway.
It appears in the list returned by Get-SecretVault.

PS> Get-SecretVault

Name          ModuleName                       IsDefaultVault
----          ----------                       --------------
LocalComputer Microsoft.PowerShell.SecretStore True
MyKeepass     SecretManagement.KeePass         False

However, when I try to unlock the vault, I get this error:

PS> Unlock-SecretVault -Name MyKeepass

cmdlet Unlock-SecretVault at command pipeline position 1
Supply values for the following parameters:
Password: ***********************
WARNING: [14:10:02][Test-SecretVault] Exception calling ".ctor" with "0" argument(s): "Operation is not supported on this platform."
WARNING: [14:10:02][Test-SecretVault] Unable to open connection to the database
WARNING: [14:10:02][Unlock-SecretVault] MyKeepass: Failed to unlock the vault
PS> (Get-CimInstance -ClassName Win32_OperatingSystem).Caption
Microsoft Windows 10 Entreprise

PS> $PSVersionTable.PSVersion

Major  Minor  Build  Revision
-----  -----  -----  --------
5      1      19041  2364

PS> $PSVersionTable.PSVersion

Major  Minor  Patch  PreReleaseLabel BuildLabel
-----  -----  -----  --------------- ----------
7      3      3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant