-
Notifications
You must be signed in to change notification settings - Fork 58
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
Add parameter -UUID to Get-KeePassEntry #187
Comments
I think #155 would also be profiting from this, as the enduser could resolve the reference by himself. |
Interesting where would you be getting the UUID value to be passing to this new parameter? |
From at least one other command execution before. You can take the bit after the colon and put that in the new execution of the CMDlet, like following: $entry = Get-KeePassEntry -MasterKey $key -KeePassGrouPath "Path/to/Group" -Title "Pass" -WithCredential
$entry.credential.GetNetworkCredential().Password
That uuid is fictitious, but should fit with the context. |
Ok so I do expose the Uuid on entry return in the native type of $x = Get-KeePassEntry -blah -blah;
$x.Uuid The underlying call in Get-KeePassEntry: This should not be an issue if you are retrieving the Uuid from the library and its already in the type If the goal is to go from If the goal is to look up an Uuid of type |
Yeah, the reason I came up with this, was that I had a few of these relations in my database. If you get on of these entries, the resulting string (or securestring) in the corresponding field will contain one of those
So there must be a way to convert the String we are getting back here in the One thing I tried allready was the following: $guidbytes = [guid]::new("<<UUID>>").ToByteArray()
$uuidBytes = $keePassEntry.Uuid.UuidBytes
Compare-Object -ReferenceObject $guidbytes -differenceObject $uuidBytes
|
Hi,
ist it possible, to add the Parameter
-UUID
To theGet-KeePassEntry
function?I tried a little coding myself, but got lost along the way.
Should I make a pull request with the changes i made until now?
Basically I only added the parameter to the list of params in the
Get-KeePassEntry
function with datatype[GUID]
and assigned it to$params.UUID
in the process block as byte array.Greetings,
Tim
The text was updated successfully, but these errors were encountered: