Running the agent
Running the Agent
Before starting the service, ensure configuration is complete:
Configure using TUI (recommended):
& "C:\Program Files\BalkanID\ad-agent\BalkanID AD Agent.exe" --configureComplete all configuration steps, then exit the TUI.
Or manually edit
C:\ProgramData\BalkanID\ad-agent\config.yaml
The agent can be run in two different ways:
I. Using the TUI (Terminal User Interface)
The TUI provides an interactive interface for monitoring and configuration:
Launch TUI Mode: Run the following command in the terminal.
& "C:\Program Files\BalkanID\ad-agent\BalkanID AD Agent.exe" --tuiTUI Features:
Dashboard: View service status, connection status, and logs
Configuration Menu: Edit settings, test connections, regenerate API keys
Real-time Logs: Monitor agent activity
Keyboard Shortcuts:
C- Open Configuration MenuR- Restart ServerQ- QuitU- Check for Updates
Exiting TUI:
Press
Qto quitThe server will stop when you exit the TUI
II. Running as Windows Service (Headless)
For production deployments, run the agent as a Windows service that operates in the background without a UI.
Service Behavior
When running as a service:
The agent runs in headless mode (no UI)
It automatically starts on system boot
Logs are written to
C:\ProgramData\BalkanID\ad-agent\logs\If Heartbeat Mode is enabled, it will:
Extract AD data every 2 hours
Process requests every 10 minutes
Upload data to BalkanID automatically
Step 1: Start the Service
The service should already be installed by install.ps1. Start it:
Step 2: Verify Service Status
Check that the service is running:
The status should show Running.
Step 3: Monitor Logs
View the service logs:
Last updated
Was this helpful?

