Windows uninstall fails

PS C:\Program Files\elastic\Agent> .\elastic-agent.exe uninstall
Error: can only be uninstalled by executing the installed Elastic Agent at: C:\Program Files\Elastic\Agent\elastic-agent.exe
For help, please see our troubleshooting guide at Troubleshoot common problems | Fleet and Elastic Agent Guide [8.8] | Elastic

PS C:> C:"Program Files"\Elastic\Agent\elastic-agent.exe uninstall
Error: can only be uninstalled by executing the installed Elastic Agent at: C:\Program Files\Elastic\Agent\elastic-agent.exe
For help, please see our troubleshooting guide at Troubleshoot common problems | Fleet and Elastic Agent Guide [8.8] | Elastic

Powershell session running as admin

I guess you get the same error if uninstalling from the CMD running as admin?

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.