Controller is not keeping Windows agents token

Hello all,

I’m having some issues with Jenkins 2.462.3 and Windows agents. Basically, we sometimes need to bring the Windows machine down, so the node is marked as disabled on the controller. But when trying to bring to agent back online, the agent fails to be online due a token change:

[05/08/25 14:07:01] [SSH] Starting sftp client.
[05/08/25 14:07:01] [SSH] Copying latest remoting.jar…
Source agent hash is F6D5AD4C308321A99325983CE626F196. Installed agent hash is 28E3A3D224EDC0F7379AD95EB0A5D4B2

I’m not quite sure why the controller thinks the agent needs a different token, since the agent was not restarted or anything.

Is there a way to force the controller to use the agent token somehow, so I don’t need to force a complete restart of the Windows machine?