From 694e37917ad909830dda4f4b676c0ac3788e9f41 Mon Sep 17 00:00:00 2001 From: Derek Ho Date: Tue, 27 Feb 2024 15:23:31 -0500 Subject: [PATCH] Update windows instructions for security demo setup (#6527) * Update windows instructions Signed-off-by: Derek Ho * Get rid of "two ways" Signed-off-by: Derek Ho * Remove extra copy Signed-off-by: Derek Ho * Added the copy button Signed-off-by: Heather Halter * Got rid of extra level Signed-off-by: Heather Halter --------- Signed-off-by: Derek Ho Signed-off-by: Heather Halter Co-authored-by: Heather Halter --- .../install-opensearch/windows.md | 19 +++++-------------- 1 file changed, 5 insertions(+), 14 deletions(-) diff --git a/_install-and-configure/install-opensearch/windows.md b/_install-and-configure/install-opensearch/windows.md index dfa1ae123a..14595a0eed 100644 --- a/_install-and-configure/install-opensearch/windows.md +++ b/_install-and-configure/install-opensearch/windows.md @@ -47,18 +47,9 @@ An OpenSearch node in its default configuration (with demo certificates and user ### Option 1: Test your OpenSearch settings with security enabled -1. Run the demo batch script. +1. Run the demo batch script from Command prompt or Powershell. - There are two ways of running the batch script: - - 1. Run the batch script using the Windows UI: - - 1. Navigate to the top directory of your OpenSearch installation and open the `opensearch-{{site.opensearch_version}}` folder. - 1. Run the batch script by double-clicking the `opensearch-windows-install.bat` file. This opens a command prompt with an OpenSearch instance running. - - 1. Run the batch script from Command prompt or Powershell: - - 1. Open Command Prompt by entering `cmd`, or Powershell by entering `powershell`, in the search box next to **Start** on the taskbar. + 1. Open Command Prompt by entering `cmd` or Powershell by entering `powershell` in the search box next to **Start** on the taskbar. 1. Change to the top directory of your OpenSearch installation. ```bat cd \path\to\opensearch-{{site.opensearch_version}} @@ -66,13 +57,13 @@ An OpenSearch node in its default configuration (with demo certificates and user {% include copy.html %} 1. Run the batch script. + For OpenSearch 2.12 or later, use the following command to specify a custom admin password: ```bat - .\opensearch-windows-install.bat + > set OPENSEARCH_INITIAL_ADMIN_PASSWORD= ``` {% include copy.html %} - For OpenSearch 2.12 or greater, set a new custom admin password before installation using the following command: ```bat - > set OPENSEARCH_INITIAL_ADMIN_PASSWORD= + .\opensearch-windows-install.bat ``` {% include copy.html %}