Admin CLI
vardhold.exe is the administrator's command-line tool, for scripts, deployment tools and incident response. It is installed in C:\Program Files\Vardhold.
On this page
Run management commands from an elevated prompt: they read the administrator token, which only Administrators can read. version and policy validate (without --server) work without elevation.
Commands#
status#
vardhold status [--json]Shows the version, mode, kill switch state, policy version, agents and endpoint capabilities. --json prints the full status object for scripts.
health#
vardhold health [--json]Lists the problems the service reports (an export failing, a hook missing, the policy falling back, low disk space and so on), most serious first. The exit code alone says how it is, for a monitoring or RMM tool: 0 healthy, 5 degraded (something needs attention), 6 failing (a high or critical problem), 3 the service could not be reached.
policy#
vardhold policy validate <file> [--base-dir DIR] [--server]
vardhold policy show [--version N]
vardhold policy apply <file>validatechecks a policy file and prints each error with its line number.--serverasks the running service instead of checking locally;--base-dirsets where list files such ashost_not_inare read from.showprints the active policy, or a version from the history.applyvalidates and applies the file as a new policy version.
mode#
vardhold mode <monitor|enforce|strict>killswitch#
vardhold killswitch <engage|release|terminate>engage blocks every checked action, denies pending approvals and suspends the agents running at that moment. terminate ends them instead, and the kill switch stays engaged until release. release (administrator) returns to normal.
export#
vardhold export [--format ocsf|cef|json] [--from TIME] [--to TIME] [--agent ID] [--output FILE]Exports events for a time range and, optionally, one agent. Without --output it writes to the console.
verify#
vardhold verify [--offline] [--db PATH] [--anchor ID:HASH]Checks the integrity of the audit log: the keyed chain, the sealed approvals, alerts and policy versions, and the record of the chain head.
--anchor ID:HASHalso checks that the log still holds an event id and hash taken from your SIEM (metadata.sequenceandmetadata.uid), which catches a rollback or rewrite of the whole log.--offlinechecks the database directly, without the service;--dbpoints it at a copy.
support-bundle#
vardhold support-bundle [--output FILE]Writes a zip for support (by default to the Desktop): versions, service state, status, settings, policy, the integrity check, logs, recent event-log entries, hook registrations and installer logs. Secrets are replaced by [REDACTED]; the tokens, the audit key and the database are never included. A part that cannot be collected is listed in the zip's README.txt.
version and cleanup-integrations#
vardhold version
vardhold cleanup-integrations [--profiles DIR;DIR] [--keep-hook]cleanup-integrations restores MCP client configurations and removes the hooks. The uninstaller runs it for you; you should not normally need it.
Connection options#
| Option | Default |
|---|---|
--url URL | The installed service on 127.0.0.1 |
--token TOKEN | The administrator token in the data folder |
--data-dir DIR | %ProgramData%\Vardhold |
Exit codes#
| Code | Meaning |
|---|---|
0 | Success |
1 | Failed, or the input was invalid (for example a policy with errors) |
2 | Usage error |
3 | The service could not be reached |
4 | The integrity check failed |
5 | health: degraded, something needs attention |
6 | health: failing, a high or critical problem |
In scripts#
$cli = "C:\Program Files\Vardhold\vardhold.exe"
& $cli verify
switch ($LASTEXITCODE) {
0 { "Audit log intact" }
3 { "Vardhold service is not running" }
4 { Write-Error "Audit log integrity check failed" }
}