Menu

#1890 Issue with using KPScript to add entry into a certain group.

KeePass_2.x
closed
nobody
None
5
2019-10-11
2019-10-09
Luke Gawel
No

So if I uses this script, it's only able to add users to ServiceAccounts_qa and ServiceAccounts_svvs, it says is successful when running it to ServiceAccounts_dev but no entry appears. It did work creating users into that group a week ago when I was testing it several times into a script, I'm not sure if something became corrupt?

& 'C:\Program Files (x86)\KeePass Password Safe 2\KPScript' -c:AddEntry "\Oec\oec\Departmental\Information Systems\CM Team\Private\Passwords\KeePass\FTPUsers.kdbx" -pw:** -Title:test0123 -UserName:test0123 -Password:test534 -GroupName:ServiceAccounts_dev

2 Attachments

Discussion

  • Paul

    Paul - 2019-10-10

    The KPScript success message just means the parameters were correct. It doesn't mean the action was successful.

    If it worked last week and doesn't this week then it's probably something you have done.
    Try -ListEntry to confirm you are using the correct syntax / group names, then tack the extra bits on the end of the good test.

    cheers, Paul

     
  • Luke Gawel

    Luke Gawel - 2019-10-10

    So I had the same ServiceAccounts_DEV group that was duplicated and the original was deleted. However, it looks like the original group was in the recycle bin and was the actual one receiving the new entries. I deleted the group from the recycle bin and now it works adding it to the new group.

     
  • Paul

    Paul - 2019-10-11

    From the Help: "The full path of the group can be specified using the -GroupPath: parameter (use '/' as separator)."
    Not using the path results in KeePass using the first match.

    cheers, Paul

     
  • Dominik Reichl

    Dominik Reichl - 2019-10-11
    • status: open --> closed
     

Log in to post a comment.

MongoDB Logo MongoDB