Code: Select all
# -*- 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')
For your information, the command, required by the publisher, and which is functional, is as follows:
Code: Select all
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' (Windows workstation agents in version 2.0.0 / WAPT Enterprise version on Debian Buster server / admin console on Windows 10)
Thank you in advance, best regards.
