How to change wazuh windows service name?

188 views
Skip to first unread message

lazycrocodile

unread,
Jan 10, 2025, 6:28:44 AM1/10/25
to Wazuh | Mailing List
Hello to all.
For current version of Wazuh there is a command to start wazuh agent service using "NET START wazuh" command. So, it means that installed wazuh service name is "wazuh". Is there any way to change a default service name for agent?

Santiago Padilla Alvarez

unread,
Jan 10, 2025, 7:37:34 AM1/10/25
to Wazuh | Mailing List
Hi!
  • The service name is used internally by Windows (and by commands like the one you mention from NET START <service>).
  • The display name is what appears in the “Services” administration console.
You can easily change just the display name (which can be confused with the service name) using sc config. But changing the actual service name (the string you use in net start <name>) is more complicated and may break scripts or updates that depend on that name.

When updating the agent, the installer may assume that the service is called wazuh. Changing the name could break future updates or require manual work each time.
Any local or remote scripts attempting to query or start/stop “wazuh” will fail once the service name is changed. You will need to locate and update all references, so this is not recommended.

You can change the display name to something else (for example, “My Custom Wazuh Agent”) if you just need a friendlier name in the Windows services console. But changing the actual name of the service could cause maintenance headaches in the future.
For this you can use sc config “wazuh” DisplayName= “My Custom Wazuh Agent” to change just the name.

I hope you find it helpful!
Best regards!
Reply all
Reply to author
Forward
0 new messages