sc create <name> binpath="<path_to_exec>"
ex:
sc create wazuh binpath="c:\Program Files (x86)\ossec-agent\wazuh-agent.exe"
To fully remove a computer from Azure Arc-enabled servers, follow the official steps in the Uninstall the Azure Connected Machin...