I don't know of a way to change the hostname within the agent.
I don't try to change the hostname within the agent. I change it within the windows settings. But my care is for getting problems with the identical Agents GUID in the network if I write back the windows-Image.
For now I have executed the command sisipsconfig -forcereg but the agent didn`t changed the GUID. The agent have still the same GUID.
In my mind I have 3 ways:
1. Either I will install the agent as specialized application or
2. I find out how to reset the GUID so that the agent get a new one or
3. I install the agent but I try to prevent that the agent is register with the DCS Server, thereby the agent don`t get a GUID.