Automating with Windows Task
Running Commander CLI commands using Windows Task automation
To set up a scheduled task in Windows to run a specific Keeper Commander CLI command on a scheduled basis, you can use the Task Scheduler tool.
In the below example, we'll re-generate a password in the vault on a daily basis.
Install
Install Keeper Commander for Windows
Enable Persistent Login
After login, set up persistent login so that the command can execute from Task Scheduler.
As an example, the below commands will enable "Stay Logged In" for 30 days:
this-device register
this-device persistent-login on
this-device ip-auto-approve on
this-device timeout 30d
quitTo exit the shell session, type quit but don't type logout. Logout will expire the session and the automations won't work.
To confirm that persistent login is working, execute Commander again and it will automatically login to the shell
Set the Action
Choose the "Start a program" option and click Next.
In the "Program/script" field, enter the path to your Keeper Commander executable, for example:
"C:\Program Files (x86)\Keeper Commander\keeper-commander.exe"In the "Add arguments (optional)" field, enter your Keeper Commander CLI command. For example:
record-update -r "Test Record" password=$GENSummary
In this particular example, the password will rotate from the Keeper vault and you'll see this occur in realtime across all logged-in vault clients. Another example is running a security audit report, such as:
security-audit-report --output c:\path\to\fileAny feature or capability of the end-user vault or Admin Console can be automated this way. Take a look at all the Keeper Commander commands available.
To expand upon this use case, you would likely want to set up a Batch file and execute the batch of commands instead of adding them directly on the CLI arguments. More information about batch mode commands can be found here.
Last updated
Was this helpful?

