-
Notifications
You must be signed in to change notification settings - Fork 170
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Agent installation instructions - the command to install windows might not work #4085
Comments
We need to update @wazuh/content to reflect the change in the documentation. |
Do we want to use $home? What are other vendors doing? |
Hello team, I have done a research about this problem. We got the following facts:
Here we have got different traces of working and error installation. Recommended command (tested) to set into the Wazuh app:
I don't recommend the use of Comparison with Chocolatey install:
|
Vendors installation
Windows environment variablesSuggested vars:
Reference -> https://en.wikipedia.org/wiki/Environment_variable#Microsoft_Windows Suggested command
|
In progress. @wazuh/qa testing. |
After the review of this issue wazuh/wazuh-qa#2855, it was determined that the command worked correctly, with the exception of a particular version of Windows 7. Further investigation was performed at wazuh/wazuh-qa#2869, and it was concluded that the After installing Windows 7 Service Pack 1 and Service Pack 2, it has been possible to upgrade the powershell version from @fedepacher has yet to check that the command works correctly for powershell v3.0. In case it works correctly with this version (it should), it is proposed to add a message that PowerShell v3 or higher is required for Windows. |
PR for Splunk: wazuh/wazuh-splunk#1315 |
ChangesWe added the requirement of PowerShell 3.0 or later in these PRs:
|
After the tests performed by @fedepacher here, we can conclude that on Windows the command:
works for powershell versions >= 3.0 |
Description
The command to install an agent displayed by the UI step-by-step guide is:
Invoke-WebRequest -Uri https://packages.wazuh.com/4.x/windows/wazuh-agent-4.3.0-1.msi -OutFile wazuh-agent-4.3.0.msi; ./wazuh-agent-4.3.0.msi /q WAZUH_MANAGER='10.0.0.241' WAZUH_REGISTRATION_SERVER='10.0.0.241'
This command, if executed in a powershell in c:\windows\system32 even with administrator privileges, does not work. This seems to be a common scenario.
This command works correctly if it is executed from the user
$home
directory. We can modify this command by:Invoke-WebRequest -Uri https://packages.wazuh.com/4.x/windows/wazuh-agent-4.2.6-1.msi -OutFile "$home\wazuh-agent-4.2.6.msi"; Invoke-Expression "$home\wazuh-agent-4.2.6.msi /q WAZUH_MANAGER='wazuh' WAZUH_REGISTRATION_SERVER='wazuh'"
which will use the user
$home
folder regardless of where it is executed to solve this. But this approach will assume the user $home is defined and writable. Which most of the time should be true.We should agree with the @wazuh/cicd team and @wazuh/core on this.
The text was updated successfully, but these errors were encountered: