Skip to content

Commit

Permalink
Add PowerShell variant to MSI install docs (#1548) (#1564)
Browse files Browse the repository at this point in the history
* Add PowerShell variant to MSI install docs

* Change 'Bash' to 'default command prompt'

* change nesting of the variant command bullets

* re-add URL description

(cherry picked from commit 1d7deb2)

Co-authored-by: David Kilfoyle <[email protected]>
  • Loading branch information
mergify[bot] and kilfoyle authored Dec 16, 2024
1 parent b377e83 commit 4ed1bf3
Showing 1 changed file with 12 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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-<VERSION>-windows-x86_64.msi INSTALLARGS="--url=<URL> --enrollment-token=<TOKEN>"
----
+
** Using PowerShell:
+
[source,shell]
----
./elastic-agent-<VERSION>-windows-x86_64.msi --% INSTALLARGS="--url=<URL> --enrollment-token=<TOKEN>"
----
====
+
Where:

* `VERSION` is the {stack} version you're installing, indicated in the MSI package name. For example, `8.13.2`.
Expand Down

0 comments on commit 4ed1bf3

Please sign in to comment.