diff --git a/docs/en/ingest-management/elastic-agent/install-agent-msi.asciidoc b/docs/en/ingest-management/elastic-agent/install-agent-msi.asciidoc index 7a8b4e5d4..c67a1e18a 100644 --- a/docs/en/ingest-management/elastic-agent/install-agent-msi.asciidoc +++ b/docs/en/ingest-management/elastic-agent/install-agent-msi.asciidoc @@ -10,13 +10,24 @@ The MSI package installer must be run by an administrator account. The installer . Download the latest Elastic Agent MSI binary from the link:https://www.elastic.co/downloads/elastic-agent[{agent} download page]. -. Run the installer: +. Run the installer. The command varies slightly depending on whether you're using the default Windows command prompt or PowerShell. ++ +==== +** Using the default command prompt: + [source,shell] ---- elastic-agent--windows-x86_64.msi INSTALLARGS="--url= --enrollment-token=" ---- + +** Using PowerShell: ++ +[source,shell] +---- +./elastic-agent--windows-x86_64.msi --% INSTALLARGS="--url= --enrollment-token=" +---- +==== ++ Where: * `VERSION` is the {stack} version you're installing, indicated in the MSI package name. For example, `8.13.2`.