Codice: Seleziona tutto
# -*- coding: utf-8 -*-
from setuphelpers import *
uninstallkey = []
properties = {
'WAZUH_MANAGER':'************',
'WAZUH_REGISTRATION_SERVER':'**************',
'WAZUH_AGENT_GROUP':'Windows'
}
def install():
#print('Installation de l\'agent Wazuh')
install_msi_if_needed('wazuh-agent.msi',properties = properties)
run(r'net stop wazuh')
run(r'net start wazuh')
Per vostra informazione, il comando richiesto dall'editore e funzionante è il seguente:
Codice: Seleziona tutto
Invoke-WebRequest -Uri https://packages.wazuh.com/4.x/windows/wazuh-agent-4.1.5-1.msi -OutFile wazuh-agent.msi; ./wazuh-agent.msi /q WAZUH_MANAGER='************' WAZUH_REGISTRATION_SERVER='**************' WAZUH_AGENT_GROUP='Windows' (Agenti workstation Windows nella versione 2.0.0 / versione WAPT Enterprise sul server Debian Buster / console di amministrazione su Windows 10)
Grazie in anticipo, cordiali saluti.
