Issue with using KPScript to add entry into a certain group.
A lightweight and easy-to-use password manager
Brought to you by:
dreichl
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
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
-ListEntryto confirm you are using the correct syntax / group names, then tack the extra bits on the end of the good test.cheers, Paul
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.
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