# User parameter for OneAgent installation

**URL:** <https://community.dynatrace.com/t/user-parameter-for-oneagent-installation/22335>\
**Category:** Open Q&A\
**Tags:** installation, oneagent\
**Created:** [October 15, 2019, 11:34am UTC](https://community.dynatrace.com/t/user-parameter-for-oneagent-installation/22335 "2019-10-15T11:34:53Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![MAkimov](https://avatars.discourse-cdn.com/v4/letter/m/b77776/32.png) [@MAkimov](https://community.dynatrace.com/u/MAkimov)\
**Post date:** [October 15, 2019, 11:34am UTC](https://community.dynatrace.com/t/user-parameter-for-oneagent-installation/22335/1 "2019-10-15T11:34:53Z")

</div>

Hello

I tried to install OneAgent on Windows host with User parameter.

I added parameter to bat file and start installation but have error - the value provided for USER parameter is incorrect

Could someone please tell what is the problem?

 ![22195-1571139165965.png](https://global.discourse-cdn.com/dynatrace/original/2X/d/dda0861a4c85e03a1c4f425304f5dfacc1fa855d.png)

---

<div class="post-metadata">

**Author:** ![skrystosik](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/skrystosik/32/21133_2.png) [@skrystosik](https://community.dynatrace.com/u/skrystosik)\
**Post date:** [October 15, 2019, 12:28pm UTC](https://community.dynatrace.com/t/user-parameter-for-oneagent-installation/22335/2 "2019-10-15T12:28:09Z")

</div>

Hello,

 ![22197-1571142402802.png](https://global.discourse-cdn.com/dynatrace/original/3X/9/0/904c087fcb95bf082fc90709b5644df45a03422b.png)

According to documentation you cannot pass this argument the way you’ve done it. Availabile options ar no\_create od dtuser. This settings is only supported for msi command-line installer. So you have to convert your exe to msi.

> **[Customize OneAgent installation on Windows](https://docs.dynatrace.com/docs/ingest-from/dynatrace-oneagent/installation-and-operation/windows/installation/customize-oneagent-installation-on-windows)**
>
> Learn how to use the OneAgent installer for Windows.

Sebastian

---

<div class="post-metadata">

**Author:** ![MAkimov](https://avatars.discourse-cdn.com/v4/letter/m/b77776/32.png) [@MAkimov](https://community.dynatrace.com/u/MAkimov)\
**Post date:** [October 15, 2019, 1:05pm UTC](https://community.dynatrace.com/t/user-parameter-for-oneagent-installation/22335/3 "2019-10-15T13:05:51Z")

</div>

Hello [@sebastian k.](https://answers.dynatrace.com/users/15061/view.html)

Thanks for the information, then tell me how to solve the problem correctly.

I need to create a plugin for collecting additional metrics with Active Directory.

We made OneAgent plugin for this task. It is work good.

However, upon testing, they noticed that after restarting the service, the OneAgent plugin stops working.

In the logs a message that the plugin cannot log in.

probably because, that is the host for the directory service, the agent somehow not properly use his account

---

<div class="post-metadata">

**Author:** ![skrystosik](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/skrystosik/32/21133_2.png) [@skrystosik](https://community.dynatrace.com/u/skrystosik)\
**Post date:** [October 15, 2019, 4:02pm UTC](https://community.dynatrace.com/t/user-parameter-for-oneagent-installation/22335/4 "2019-10-15T16:02:51Z")

</div>

You have use no\_create option and than you will be able to add your own user in configuration.

Sebastian

---

<div class="post-metadata">

**Author:** ![MAkimov](https://avatars.discourse-cdn.com/v4/letter/m/b77776/32.png) [@MAkimov](https://community.dynatrace.com/u/MAkimov)\
**Post date:** [October 15, 2019, 4:41pm UTC](https://community.dynatrace.com/t/user-parameter-for-oneagent-installation/22335/5 "2019-10-15T16:41:57Z")

</div>

Could you please say how to do it?

In doc is written

- Note that using `USER=no_create`disables Dynatrace OneAgent plugins functionality.

---

<div class="post-metadata">

**Author:** ![skrystosik](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/skrystosik/32/21133_2.png) [@skrystosik](https://community.dynatrace.com/u/skrystosik)\
**Post date:** [October 15, 2019, 4:49pm UTC](https://community.dynatrace.com/t/user-parameter-for-oneagent-installation/22335/6 "2019-10-15T16:49:36Z")

</div>

Ok sorry, my bad, you can pass your own username using user parameter, but you have to do it on MSI installer, not exe one. As I see here on screenshot you ware using GUI to install agent, you should use commandline (according to doc).

Sebastian

---

<div class="post-metadata">

**Author:** ![MAkimov](https://avatars.discourse-cdn.com/v4/letter/m/b77776/32.png) [@MAkimov](https://community.dynatrace.com/u/MAkimov)\
**Post date:** [October 15, 2019, 5:13pm UTC](https://community.dynatrace.com/t/user-parameter-for-oneagent-installation/22335/7 "2019-10-15T17:13:33Z")

</div>

I used Bat file (not GUI), simple it will be without parameter silent installation

I can install with _USER=no\_create_

But In doc is written

- Note that using `USER=no_create`disables Dynatrace OneAgent plugins functionality.

but I need the plugin to work

---

<div class="post-metadata">

**Author:** ![skrystosik](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/skrystosik/32/21133_2.png) [@skrystosik](https://community.dynatrace.com/u/skrystosik)\
**Post date:** [October 15, 2019, 7:00pm UTC](https://community.dynatrace.com/t/user-parameter-for-oneagent-installation/22335/8 "2019-10-15T19:00:01Z")

</div>

On screen there is no silent installation I see installer. You have to create msi from exe and use commandline then. And as I said, you have to pass user here different than default because as you said, no\_create will disable plugins.

---

<div class="post-metadata">

**Author:** ![MAkimov](https://avatars.discourse-cdn.com/v4/letter/m/b77776/32.png) [@MAkimov](https://community.dynatrace.com/u/MAkimov)\
**Post date:** [October 16, 2019, 7:00am UTC](https://community.dynatrace.com/t/user-parameter-for-oneagent-installation/22335/9 "2019-10-16T07:00:51Z")

</div>

Hello [@sebastian k.](https://answers.dynatrace.com/users/15061/view.html)

you said that _I must have use no\_create option_

Ok, I do not have problems whit it. I can install with whis parameter.

Next you said _than you will be able to add your own user in configuration_

I do not quite understand how to do it right. Could you tell how to do it right?

I need to have my working plugin.

But In doc is written

- Note that using `USER=no_create`disables Dynatrace OneAgent plugins functionality.

---

<div class="post-metadata">

**Author:** ![Tomasz\_Gajger](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/tomasz_gajger/32/11712_2.png) [@Tomasz\_Gajger](https://community.dynatrace.com/u/Tomasz_Gajger)\
**Post date:** [October 16, 2019, 7:26am UTC](https://community.dynatrace.com/t/user-parameter-for-oneagent-installation/22335/10 "2019-10-16T07:26:28Z")

</div>

The user cannot be customized, you can choose to either:

- Use default user: dtuser
- Do not create the user, what means that Plugins will be disabled

---

<div class="post-metadata">

**Author:** ![MAkimov](https://avatars.discourse-cdn.com/v4/letter/m/b77776/32.png) [@MAkimov](https://community.dynatrace.com/u/MAkimov)\
**Post date:** [October 16, 2019, 7:34am UTC](https://community.dynatrace.com/t/user-parameter-for-oneagent-installation/22335/11 "2019-10-16T07:34:12Z")

</div>

Ok, Thank you [@Tomasz G.](https://answers.dynatrace.com/users/14867/view.html)

Сould you please tell me, in other words, I cannot use the **OneAgent plugin** to collect metrics from **Active Direcroty** since **dtuser** will propagation of across the domain, which can cause interference with existing dtuser accounts on hosts that have Dynatrace installed?

---

<div class="post-metadata">

**Author:** ![Tomasz\_Gajger](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/tomasz_gajger/32/11712_2.png) [@Tomasz\_Gajger](https://community.dynatrace.com/u/Tomasz_Gajger)\
**Post date:** [October 16, 2019, 9:22am UTC](https://community.dynatrace.com/t/user-parameter-for-oneagent-installation/22335/12 "2019-10-16T09:22:56Z")

</div>

Yes, that is correct.  
There is already a Product Idea to improve it [https://community.dynatrace.com/idea/198583/dtuser-domain-controller-support-ad-current-only-l.html](https://community.dynatrace.com/idea/198583/dtuser-domain-controller-support-ad-current-only-l.html)  
Feel free to share your feedback there.
