Hello, @joseph
Thank you for using wazuh.
Yes, as you mentioned, you can uninstall the agent in your windows environment, and from the dashboard generate the strip of code for the new environment, with the corresponding parameters so that this time it connects to the new server.
You can also try modifying your C:\Program Files (x86)\ossec-agent\ossec.conf file

Changing the server address and manager address parameters and in case you have security the enroll password
https://documentation.wazuh.com/current/user-manual/agent-enrollment/security-options/using-password-authentication.htmlIf I solved your doubt let me know. greetings