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 Keeper Commander for Windows
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:
To exit the shell session, type quit but don't type logout. Logout will expire the session and the automations won't work.
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:
Any feature or capability of the end-user vault or Admin Console can be automated this way. Take a look at all the Keeper Commander 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 .
To confirm that persistent login is working, execute Commander again and it will automatically login to the shell
Type taskschd.msc and press Enter. This opens the Task Scheduler.
Click Next.
Click Next.
In the "Add arguments (optional)" field, enter your Keeper Commander CLI command. For example:
To make sure the command works, select the Task and click "Run" on the right side.
server US
login [email protected]this-device register
this-device persistent-login on
this-device ip-auto-approve on
this-device timeout 30d
quitrecord-add -t "Test Record" password=$GEN --record-type=loginsecurity-audit-report --output c:\path\to\file"C:\Program Files (x86)\Keeper Commander\keeper-commander.exe"record-update -r "Test Record" password=$GEN