Home › Knowledge base › "Device limit reached" after reimaging a machine
"Device limit reached" after reimaging a machine
- Article
- KB-1042
- Category
- Registration
- Applies to
- All platforms
Symptoms
After rebuilding or reimaging machines, registration fails with CBK-1004, or the console shows two devices with the same name, one offline and one new.
Cause
Registration creates a device record tied to a key stored on the machine. Reimaging wipes that key, so the agent registers again as a new device. The old record remains, with its restore points, and each registration counts against the enrolment key.
Resolution
To continue the existing device's history on the rebuilt machine, adopt the old record instead of creating a new one:
cbk enrol --key CBK-ENR-XXXX-XXXX-XXXX --adopt "FIN-LT-0142"
An administrator then approves the request under Devices › Pending adoption. Approval is required because adoption gives the new installation access to the old device's backups.
If the machine has already registered as a new device:
- In the console, open the new device and choose Merge into existing device.
- Select the old record.
- Confirm. The new device's restore points are added to the old record's history and the duplicate is removed.
For imaging at scale
Do not register the agent in the image. Install it in the image unregistered (run the installer without ENROLKEY), and register at first boot using a script. For machines being reimaged, include --adopt "%COMPUTERNAME%" so that each picks up its previous record if one exists, and registers as new if not.
The enrolment key limit
Raise Maximum devices on the key, or create a new key. See Enrolment keys.