Reinstalling agent puts device in old group
When you uninstall an agent, deregister it, and reinstall the agent, it is possible that the device is still associated with its old group. The reason for this is, group associations are stored in a separate table. When you deregister the agent, it does not remove the association from the device.
To associate the device with a different group upon reinstallation, use the --setkey
variable when installing the agent on the device.
See our documentation for an explanation about the use of scripts to deploy the agent and how to utilize the group assignment feature: