1 @echo off 2 3 rem Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one 4 rem or more contributor license agreements. Licensed under the Elastic License; 5 rem you may not use this file except in compliance with the Elastic License. 6 7 setlocal enabledelayedexpansion 8 setlocal enableextensions 9 10 set ES_MAIN_CLASS=org.elasticsearch.xpack.security.authc.esnative.tool.SetupPasswordTool 11 set ES_ADDITIONAL_SOURCES=x-pack-env;x-pack-security-env 12 call "%~dp0elasticsearch-cli.bat" ^ 13 %%* ^ 14 || goto exit 15 16 endlocal 17 endlocal 18 :exit 19 exit /b %ERRORLEVEL%