diff --git a/tools/install_demo_configuration.bat b/tools/install_demo_configuration.bat index 827252916e..ce2b7a1a3f 100755 --- a/tools/install_demo_configuration.bat +++ b/tools/install_demo_configuration.bat @@ -348,7 +348,7 @@ set "HASH_SCRIPT=%OPENSEARCH_PLUGINS_DIR%\opensearch-security\tools\hash.bat" echo ADMIN PASSWORD SET TO: !ADMIN_PASSWORD! REM Run the command and capture its output -for /f %%a in ('"%HASH_SCRIPT%" -p "!ADMIN_PASSWORD!"') do ( +for /f %%a in ('^"%HASH_SCRIPT%^" -p ^"!ADMIN_PASSWORD!^"') do ( set "HASHED_ADMIN_PASSWORD=%%a" )