Service management and troubleshooting
Service Management
Common Service Operations
Check Service Status:
Get-Service -Name "BalkanIDADAgent"Start Service:
Start-Service -Name "BalkanIDADAgent"Stop Service:
Stop-Service -Name "BalkanIDADAgent" -ForceRestart Service:
Restart-Service -Name "BalkanIDADAgent"View Service Details:
sc qc BalkanIDADAgent
sc query BalkanIDADAgentViewing Logs
Application Logs (per-day log files):
# View latest log entries
Get-Content "C:\ProgramData\BalkanID\ad-agent\logs\*.log" -Tail 50
# Follow logs in real-time (PowerShell 7+)
Get-Content "C:\ProgramData\BalkanID\ad-agent\logs\*.log" -Wait -Tail 20Windows Event Log:
Updating the Agent
The agent includes automatic update functionality:
Check for Updates (via TUI):
Launch TUI:
& "C:\Program Files\BalkanID\ad-agent\BalkanID AD Agent.exe" --tuiPress
Uor navigate to "Check for Updates"Follow prompts to apply updates
Manual Update:
Re-run
install.ps1to download and install the latest versionThe installer will stop the service, update the binary, and restart the service
Troubleshooting
Service Won't Start
Check Event Log:
Verify Configuration:
Ensure
config.yamlexists and is valid YAMLCheck that all required fields are populated
Verify file permissions (service account needs read access)
Test Configuration:
Navigate to "Test LDAP Connection"
Verify connection succeeds
Check Service Account Permissions:
Ensure the service account has appropriate AD permissions
Verify the service account password is correct
LDAP Connection Issues
Verify Network Connectivity:
Test LDAP Connection Manually:
Check Firewall Rules:
Ensure ports 389 (LDAP) or 636 (LDAPS) are open
Verify Windows Firewall allows outbound connections
Verify Certificate (for LDAPS):
Ensure the domain controller certificate is valid
Check certificate chain is trusted
Heartbeat Mode Issues
Verify Credentials:
Check
tenant_id,tenant_key,tenant_secret, andintegration_idin configEnsure credentials are correct and not expired
Test Network Connectivity:
Check Logs:
Configuration Issues
Invalid YAML Syntax:
Use a YAML validator to check syntax
Common issues: incorrect indentation, missing colons, unquoted special characters
File Permissions:
Ensure the service account can read
config.yamlCheck file is not locked by another process
Regenerate API Key:
Launch TUI:
& "C:\Program Files\BalkanID\ad-agent\BalkanID AD Agent.exe" --configureNavigate to "Regenerate API Key"
Save the new key securely
Update Issues
If automatic updates are not working:
Verify Network Connectivity to Update Server:
Check Firewall Rules:
Ensure outbound HTTPS (port 443) traffic is allowed
Verify proxy settings if your network uses a proxy
Check if corporate firewall blocks CloudFront CDN
Review Update Logs:
Manual Update:
If automatic updates fail, manually download and run
install.ps1from the official URL
Additional Resources
Configuration File Location:
C:\ProgramData\BalkanID\ad-agent\config.yamlLogs Directory:
C:\ProgramData\BalkanID\ad-agent\logs\Executable Location:
C:\Program Files\BalkanID\ad-agent\BalkanID AD Agent.exeService Name:
BalkanIDADAgent
For additional support, please contact your BalkanID support
Last updated
Was this helpful?

