Getting is not recognised internal and external command error

463 views
Skip to first unread message

Raju Vema

unread,
Mar 23, 2023, 2:47:02 AM3/23/23
to Wazuh mailing list
I need solution.
i am trying to add agent but after run the command getting error.

C:\Windows\System32>Invoke-WebRequest -Uri https://packages.wazuh.com/4.x/windows/wazuh-agent-4.3.10-1.msi -OutFile ${env:tmp}\wazuh-agent-4.3.10.msi; msiexec.exe /i ${env:tmp}\wazuh-agent-4.3.10.msi /q WAZUH_MANAGER='x.x.x.x' WAZUH_REGISTRATION_SERVER='x.x.x.x" WAZUH_AGENT_GROUP='default'
'Invoke-WebRequest' is not recognized as an internal or external command,
operable program or batch file.

Next in GUI it is asking Authentication Key . where is it.


Gonzalo Membrillo Solbes

unread,
Mar 23, 2023, 4:06:05 AM3/23/23
to Wazuh mailing list
Hello Raju,

It would appear that you may have an outdated version of Powershell. As you can see in the enrollment instructions, you require Powershell v3.0 or later.
Captura de pantalla 2023-03-23 085930.png
Additionally, do make sure you are using Powershell to run this command and not the Command Line Interface.

As for the Authentication key, it will be automatically shared with the agent once it is registered. These keys are not available prior to that since the manager generates them during the registration period. For more information on the enrollment process, you can follow this link: https://documentation.wazuh.com/current/user-manual/agent-enrollment/index.html

I hope you find this helpful. Do let us know if you need anything else.

Best regards,
Gonzalo
Reply all
Reply to author
Forward
0 new messages