Skip to content

Commit 4ed1bf3

Browse files
Add PowerShell variant to MSI install docs (#1548) (#1564)
* 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]>
1 parent b377e83 commit 4ed1bf3

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

docs/en/ingest-management/elastic-agent/install-agent-msi.asciidoc

+12-1
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,24 @@ The MSI package installer must be run by an administrator account. The installer
1010

1111
. Download the latest Elastic Agent MSI binary from the link:https://www.elastic.co/downloads/elastic-agent[{agent} download page].
1212

13-
. Run the installer:
13+
. Run the installer. The command varies slightly depending on whether you're using the default Windows command prompt or PowerShell.
14+
+
15+
====
16+
** Using the default command prompt:
1417
+
1518
[source,shell]
1619
----
1720
elastic-agent-<VERSION>-windows-x86_64.msi INSTALLARGS="--url=<URL> --enrollment-token=<TOKEN>"
1821
----
1922
+
23+
** Using PowerShell:
24+
+
25+
[source,shell]
26+
----
27+
./elastic-agent-<VERSION>-windows-x86_64.msi --% INSTALLARGS="--url=<URL> --enrollment-token=<TOKEN>"
28+
----
29+
====
30+
+
2031
Where:
2132

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

0 commit comments

Comments
 (0)