I am working on automating a lot of my day to day deployment work, and this includes a lot of manual KeePass entries. I saw that they have an official scripting tutorial, plus some functionality for generating random passwords based on a profile set up within the application.
Per KeePass' documentation, this is what I am trying to run:
.\KPScript -c:AddEntry "Z:\file location" -pw:"keepass password" -Title:Test -Username:test -password:{NEWPASSWORD:/scripttest/} -GroupPath:General
The trouble is, the KeePass entry generates with the literal string password
{NEWPASSWORD:/scripttest/}
and not the actual randomly generated password from the scripttest profile. What am I missing here? KeePass' documentation is fairly sparse on this sort of thing. It's a long shot, and I can see this site doesn't have a lot in terms of KPScript stuff, but it's worth a shot. Thanks!
Edit: I have tried running this code in CMD as well, thinking it might be a problem with Powershell, but encountered the same result.