# Elasticsearch Shield with custom path.plugins

**URL:** https://discuss.elastic.co/t/elasticsearch-shield-with-custom-path-plugins/85824
**Category:** Elasticsearch
**Tags:** elastic-stack-security
**Created:** [May 15, 2017, 9:19pm UTC](https://discuss.elastic.co/t/elasticsearch-shield-with-custom-path-plugins/85824 "2017-05-15T21:19:08Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![benbenwilde](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/benbenwilde/32/18230_2.png) [@benbenwilde](https://discuss.elastic.co/u/benbenwilde)
#### Post date: [May 15, 2017, 9:19pm UTC](https://discuss.elastic.co/t/elasticsearch-shield-with-custom-path-plugins/85824/1 "2017-05-15T21:19:08Z")

</div>

After installing Elasticsearch Shield I try to run the following command:

```
bin/shield/esusers useradd es_admin -r admin

```

But I then get this error:

```
Error: Could not find or load main class org.elasticsearch.shield.authc.esusers.tool.ESUsersTool

```

Apparently it is not looking in the custom plugins folder because it is hardcoded into the .in.bat file:

```
set ES_CLASSPATH=%ES_CLASSPATH%;%ES_HOME%/lib/elasticsearch-1.4.0-SNAPSHOT.jar;%ES_HOME%/lib/*;%ES_HOME%/lib/sigar/*;%ES_HOME%/plugins/shield/*

```

How can I make this work with a custom plugins folder?

I am running version 2.3.4 of Elasticsearch and Shield on Windows Server 2012 R2.

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [June 12, 2017, 9:24pm UTC](https://discuss.elastic.co/t/elasticsearch-shield-with-custom-path-plugins/85824/2 "2017-06-12T21:24:03Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
