Install the Windows Collector
For ZKTeco devices without ADMS. The Collector is a small Windows service that reads the devices over the local network (TCP port 4370) and uploads the punches securely. If the internet or the PC goes down, punches wait on the PC and on the device; nothing is lost or counted twice.
What you need
- A Windows 10 / 11 or Windows Server PC (64-bit) that stays on, on the same network as the devices.
- Administrator rights on that PC, and internet access to
mail.artoolshub.com(HTTPS). - Each device's IP address (Menu → Comm. → Ethernet) and, if one is set, its comm key.
1. Create the Collector in the panel
- Open Collectors → New Collector, name it after the site (for example "Head office") and save.
- The panel shows an enrollment token and a ready-made install command. The token works once and expires after 24 hours. Treat it like a password.
2. Add the devices
- Open Devices → Add device and choose Windows Collector.
- Choose the Collector, enter the device IP, port (usually
4370) and the comm key if one is set. The serial number is optional; the Collector reads it.
Devices can also be added later. The Collector picks up changes from the panel by itself.
3. Install on the PC
On the PC, right-click Start → Terminal (Admin) or Windows PowerShell (Admin) and paste the command from the Collector page. It looks like this:
& ([scriptblock]::Create((irm https://mail.artoolshub.com/downloads/collector/install.ps1))) -Token ARC-XXXXXXXX-XXXXXXXX-XXXXXXXX
The command downloads the Collector, checks that the file is genuine, installs it in C:\Program Files\AR Attendance Collector, registers this PC with your token and starts the AR Attendance Collector service. It starts by itself with Windows and restarts if it stops.
4. Check it works
- Within a minute the Collector page shows Online with the PC name, and each device turns Online.
- Punches are read every 2 minutes. The first read also uploads the records already stored on the device.
- Unknown device user IDs appear under Employees → Unmapped device IDs until you link them to employees.
Updates
New versions install themselves within a few minutes of release. If a new version fails to start, the previous one is restored automatically. The Collector page shows the result.
Useful commands
In an admin PowerShell, in C:\Program Files\AR Attendance Collector:
.\ar-collector.exe status | Registration, devices and how many punches are waiting. |
|---|---|
.\ar-collector.exe test-device 192.168.0.155 | Checks that a device answers (add --key 1234 for a comm key). |
.\ar-collector.exe service restart | Restart the service. |
Log file: C:\ProgramData\AR Attendance Collector\logs\collector.log
Troubleshooting
| "Enrollment failed" | The token was already used or is older than 24 hours. On the Collector page create a new token and run the command again. |
|---|---|
| Device stays offline | Run test-device with its IP. Check the cable, that the PC and device are in the same network, the comm key, and that no other software (for example ZKTime) is connected to the device at the same moment. |
| Collector offline | The PC is off, asleep or has no internet. Set Windows power options so the PC never sleeps. |
| Moving to a new PC | Create a new token on the Collector page and install on the new PC. The old PC loses access automatically. |