User Agent on Windows

Install, configure, check, stop, update and troubleshoot the Kabeen user agent on Windows workstations

The agent ships as a signed .msi installer, for Windows 10 and 11 (x86_64). It is not a Windows service: it starts at each user's session logon and runs under that user's identity. The network prerequisites are described in User Agent Overview, and fleet deployment in the Intune, GPO and Script articles and, for shared servers, RDS / Citrix.

Install the agent

  1. In Kabeen, in the Agent Tracking menu, click Download Package and choose the MSI, with or without the browser extension.
  2. Run the MSI with administrator rights and follow the wizard.

The MSI:

  • installs the agent in C:\Program Files\Kabeen\Kabeen.exe;
  • creates the autostart entry HKLM\Software\Microsoft\Windows\CurrentVersion\Run → Kabeen;
  • installs the native messaging hosts and automatically installs the Kabeen extension in Edge, Chrome and Firefox through their policies, except with the "without extension" variant of the MSI (see Browser extension);
  • installs the WebView2 runtime if it is missing.

The agent starts at each user's next session logon, and shows an icon in the notification area.

Silent installation

From an elevated PowerShell or in the SYSTEM context:

msiexec /i "Kabeen_<version>_x64_en-US.msi" /qn /norestart /l*v "C:\Windows\Temp\kabeen-install.log"
OptionEffect
/qnFully silent installation
/qbProgress bar only
/norestartNever restart
/l*v <path>Detailed MSI log, useful for support

Return code 0 indicates success.

Locations

ItemPath
AgentC:\Program Files\Kabeen\Kabeen.exe
AutostartHKLM\Software\Microsoft\Windows\CurrentVersion\Run → Kabeen
RestartKabeen Agent scheduled task
Managed configurationHKLM\SOFTWARE\Policies\Kabeen\Configuration, then HKCU\SOFTWARE\Policies\Kabeen\Configuration
Local configuration%APPDATA%\Kabeen\configuration.json
Logs%APPDATA%\Kabeen\ (one file per day, kept for 14 days)

Configure the agent

On a standalone workstation, click the agent icon in the notification area, enter your organization's API key, then choose the structure and the team. These settings are saved in the user's local configuration.

On a managed fleet, deploy the ApiKey, Structure and Team values in the registry, under HKLM\SOFTWARE\Policies\Kabeen\Configuration (all users of the workstation) or HKCU\SOFTWARE\Policies\Kabeen\Configuration (one user; HKLM takes precedence value by value), preferably with the Kabeen ADMX template. The agent then asks the user for nothing.

Windows Registry Editor Version 5.00
 
[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Kabeen\Configuration]
"ApiKey"="YOUR_API_KEY"
"Structure"="YOUR_STRUCTURE_UUID"
"Team"="YOUR_TEAM_UUID"

The optional keys, the ADMX template and the order of the sources are described in User Agent Configuration, and the procedures in Deploy User Agent via GPO and via Intune.

Browser extension

The MSI automatically installs the Kabeen extension in Edge, Chrome and Firefox, by means of their managed extensions policies, along with the native messaging hosts through which it communicates with the agent. With the "without extension" variant, only the hosts are installed: in that case, deploy the extension yourself, by GPO or Intune. See also Kabeen Browser Extension.

Check that the agent works

Get-Process Kabeen -ErrorAction SilentlyContinue                         # the agent is running
Get-ItemProperty "HKLM:\Software\Microsoft\Windows\CurrentVersion\Run" -Name Kabeen   # autostart
Get-Content "$env:APPDATA\Kabeen\*.log" -Tail 50 -Wait                    # agent log

At startup, the log shows that the configuration is complete, then the connection to Kabeen. A connection, certificate or configuration error also appears there. The log level is set in the registry (see Diagnostics).

In Kabeen, the workstation appears in the Agent Tracking menu with recent activity, along with its configuration and metrics.

Keeping the agent running

The agent starts at session logon through the Run value. In addition, the Kabeen Agent scheduled task checks every 5 minutes that the agent is running in the user's session, and restarts it if needed.

Update the agent

Install the new MSI over the old one (msiexec /i … /qn), manually or with your deployment tool. It replaces the agent and keeps the autostart. The registry configuration does not depend on the MSI: it is kept. On a fleet, see the update with Intune, with GPO or by script.

Stop the agent

A workstation administrator can always stop the agent. A forced stop lasts until the next run of the Kabeen Agent task (within 5 minutes) or until the next session logon:

taskkill /IM Kabeen.exe /F
taskkill /IM proxy.exe  /F   # browser extension relay, if running

To persistently prevent it from starting, disable the task and delete the autostart entry (administrator rights):

Disable-ScheduledTask -TaskName "Kabeen Agent"
Remove-ItemProperty -Path "HKLM:\Software\Microsoft\Windows\CurrentVersion\Run" -Name "Kabeen"

Uninstall the agent

Uninstall Kabeen from Settings > Apps, or from the command line with the MSI product code:

Get-Package -Name Kabeen | Format-List Name, Version, FastPackageReference   # product code
msiexec /x "{PRODUCT-CODE}" /qn

If items remain in place, delete the autostart entry and the local data:

Remove-ItemProperty -Path "HKLM:\Software\Microsoft\Windows\CurrentVersion\Run" -Name "Kabeen" -ErrorAction SilentlyContinue
Remove-Item "$env:APPDATA\Kabeen" -Recurse -Force -ErrorAction SilentlyContinue

Uninstallation on a fleet is described for Intune, GPO and Script, and removal of the browser extension in Uninstall User Agent.

Troubleshooting

SymptomWhat to do
No icon in the notification areaCheck that HideTrayIcon is set neither in the registry nor in the local file. It is read at startup: restart the agent after changing it. The icon may also be tucked away among the taskbar's hidden icons.
Icon hidden and no way to open the settingsThis is expected with HideTrayIcon (see Hiding the agent icon). Remove the value from the source that sets it, then restart the agent.
Nothing starts at session logonCheck that the Run value Kabeen exists and points to Kabeen.exe, and that WebView2 is installed. On an RDS or Citrix server, see Deployment on RDS/Citrix Environment.
The agent comes back after a taskkillThis is the Kabeen Agent scheduled task (see Stop the agent).
The agent ignores the registry configurationThe registry must provide ApiKey, Structure and Team together, with HKLM and HKCU combined value by value. An incomplete set is recorded in the log (see User Agent Configuration).
No data in Kabeen although the agent is runningCheck outbound 443/TCP traffic to intake.kabeen.io, then the workstation clock (a large time offset makes TLS fail), then connection or certificate errors in the log. Also check that your EDR is not blocking the agent (see Allowing the Kabeen agent in your EDR/antivirus).