Hi Grzegorz,
These internal options have to be set on each agent's local_internal_options.conf to enable remote commands:
wazuh_command.remote_commands=1
logcollector.remote_commands=1
It can only be enabled from the endpoints because of security concerns. By enabling remote command execution, the Wazuh server gains the ability to execute commands on the monitored endpoint. Remote commands are disabled by default as a security measure, which helps reduce the attack surface in case the Wazuh server is compromised.