# Dynatrace oneagent installation with Windows 2019

**URL:** <https://community.dynatrace.com/t/dynatrace-oneagent-installation-with-windows-2019/48370>\
**Category:** Open Q&A\
**Tags:** installation, oneagent\
**Created:** [October 16, 2024, 2:09pm UTC](https://community.dynatrace.com/t/dynatrace-oneagent-installation-with-windows-2019/48370 "2024-10-16T14:09:58Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![sundarv1](https://avatars.discourse-cdn.com/v4/letter/s/65b543/32.png) [@sundarv1](https://community.dynatrace.com/u/sundarv1)\
**Post date:** [October 16, 2024, 2:09pm UTC](https://community.dynatrace.com/t/dynatrace-oneagent-installation-with-windows-2019/48370/1 "2024-10-16T14:09:58Z")

</div>

After we do upgrade of oneagent update in Windows 2019 Server , Remote desktop connection to server is lost.

Oneagent is getting upgraded successfully. But it require a reboot to resolve the&nbsp;Remote desktop connection&nbsp; issue.

This issue happens only in Windows 2019. Windows 2016 all loooks good.

---

<div class="post-metadata">

**Author:** ![jonhaugen](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/jonhaugen/32/34914_2.png) [@jonhaugen](https://community.dynatrace.com/u/jonhaugen)\
**Post date:** [October 16, 2024, 2:24pm UTC](https://community.dynatrace.com/t/dynatrace-oneagent-installation-with-windows-2019/48370/2 "2024-10-16T14:24:53Z")

</div>

Hi,

From my own experience, this seems to be only affecting a specific Windows 2019 build, and happens only when Npcap is installed or upgraded.

The problem occurs because the Npcap driver shipped with the Oneagent installation has a bug which seems to cut all incoming and outgoing connections to the server.&nbsp;The workaround is either to disable Npcap installation or reboot.

You can try to reach out to Nmap ([https://nmap.org/](https://nmap.org/)), and see if they have had any similar reports on your current build.

Best of luck!

---

<div class="post-metadata">

**Author:** ![sundarv1](https://avatars.discourse-cdn.com/v4/letter/s/65b543/32.png) [@sundarv1](https://community.dynatrace.com/u/sundarv1)\
**Post date:** [October 16, 2024, 2:28pm UTC](https://community.dynatrace.com/t/dynatrace-oneagent-installation-with-windows-2019/48370/3 "2024-10-16T14:28:38Z")

</div>

Hi Jon - Have you raised ticket with Dynatrace why they are shipping&nbsp;Npcap driver shipped with the Oneagent installation has a bug?.

---

<div class="post-metadata">

**Author:** ![Peter\_Youssef](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/peter_youssef/32/14668_2.png) [@Peter\_Youssef](https://community.dynatrace.com/u/Peter_Youssef)\
**Post date:** [October 17, 2024, 10:45am UTC](https://community.dynatrace.com/t/dynatrace-oneagent-installation-with-windows-2019/48370/4 "2024-10-17T10:45:04Z")

</div>

Hello&nbsp;[@sundarv1](https://community.dynatrace.com/user/74312)

You can refer to Dynatrace documentation regarding pcap driver, if pcap part of the issue.

[packet\_capture\_driver](https://docs.dynatrace.com/docs/shortlink/windows-custom-installation#packet_capture_driver)

 ![2024-10-17_14h38_49.png](https://global.discourse-cdn.com/dynatrace/original/2X/5/5d7093b43be46c6808ea122d4cf2840bbec7179f.png)

You can stop OA service and adjust this configuration.

BR,

Peter

---

<div class="post-metadata">

**Author:** ![Peter\_Youssef](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/peter_youssef/32/14668_2.png) [@Peter\_Youssef](https://community.dynatrace.com/u/Peter_Youssef)\
**Post date:** [October 17, 2024, 10:55am UTC](https://community.dynatrace.com/t/dynatrace-oneagent-installation-with-windows-2019/48370/5 "2024-10-17T10:55:06Z")

</div>

Hi&nbsp;[@sundarv1](https://community.dynatrace.com/user/74312)

There is another solution to avoid such scenario in future:

Go to the target server \> settings \> process group monitoring \> add process group \> select the process group from the drop down menu which will be “Remote Desktop Connection” by default and select do not monitor to avoid the OA code modules injection.

 ![2024-10-17_14h50_18.png](https://global.discourse-cdn.com/dynatrace/original/3X/6/7/67748dc52115e59eec42f96afd9e17c7af85df36.png)

So whenever update is triggered this “Remote Desktop Connection” won’t be impacted at all.

BR,

Peter

---

<div class="post-metadata">

**Author:** ![Peter\_Youssef](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/peter_youssef/32/14668_2.png) [@Peter\_Youssef](https://community.dynatrace.com/u/Peter_Youssef)\
**Post date:** [October 17, 2024, 11:52am UTC](https://community.dynatrace.com/t/dynatrace-oneagent-installation-with-windows-2019/48370/6 "2024-10-17T11:52:57Z")

</div>

Hi&nbsp;[@sundarv1](https://community.dynatrace.com/user/74312)

You have a good option if these Win server 2019 are grouped under host group.

Infrastructure observability \> Process and technologies \> filter by “Remote Desktop Connection” \> then Edit and add monitoring rule \> do not monitor so these servers won’t be affected.

KR,

Peter.

---

<div class="post-metadata">

**Author:** ![jonhaugen](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/jonhaugen/32/34914_2.png) [@jonhaugen](https://community.dynatrace.com/u/jonhaugen)\
**Post date:** [October 17, 2024, 12:11pm UTC](https://community.dynatrace.com/t/dynatrace-oneagent-installation-with-windows-2019/48370/7 "2024-10-17T12:11:41Z")

</div>

The ticket with Dynatrace was eventually closed, however here is the feedback:

_“There is Windows 2019 server (1809) which known problem that installing npcap driver causes whole host network disruption. This problem was studied time ago by nmap company which releases npcap and the pointed out there is a bug inside windows kernel (especially 1809) then problem got redirected to Microsoft - now to my knowledge other versions of Windows are not affected. There is hotfix installed&nbsp;[KB4571748](https://www.catalog.update.microsoft.com/Search.aspx?q=KB4571748)but there may other factors that make problem is still present e.g. some WAN miport drivers are present”_

---

<div class="post-metadata">

**Author:** ![sundarv1](https://avatars.discourse-cdn.com/v4/letter/s/65b543/32.png) [@sundarv1](https://community.dynatrace.com/u/sundarv1)\
**Post date:** [October 17, 2024, 1:57pm UTC](https://community.dynatrace.com/t/dynatrace-oneagent-installation-with-windows-2019/48370/8 "2024-10-17T13:57:08Z")

</div>

Hi Peter

When we do oneagent upgrade via dynatrace console, where do we specify the npcap parameter?. Could you please share?,

---

<div class="post-metadata">

**Author:** ![sundarv1](https://avatars.discourse-cdn.com/v4/letter/s/65b543/32.png) [@sundarv1](https://community.dynatrace.com/u/sundarv1)\
**Post date:** [October 18, 2024, 1:06pm UTC](https://community.dynatrace.com/t/dynatrace-oneagent-installation-with-windows-2019/48370/9 "2024-10-18T13:06:17Z")

</div>

Hi Jon

But npcap is installed as part of dynatrace oneagent installation not thru windows 2019 OS.

Npcap Oneagent is installed thru dynatrace oneagent installation

---

<div class="post-metadata">

**Author:** ![Peter\_Youssef](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/peter_youssef/32/14668_2.png) [@Peter\_Youssef](https://community.dynatrace.com/u/Peter_Youssef)\
**Post date:** [October 19, 2024, 2:11pm UTC](https://community.dynatrace.com/t/dynatrace-oneagent-installation-with-windows-2019/48370/10 "2024-10-19T14:11:52Z")

</div>

Hello&nbsp;[@sundarv1](https://community.dynatrace.com/user/74312)

It’s not available through the installation UI, so you can do it through installation scripts or after deployment via oneagentctl.

.\oneagentctl.exe --set-PCAP\_DRIVER=npcap

PFA attached URL :&nbsp;[windows-custom-installation#packet\_capture\_driver](https://docs.dynatrace.com/docs/shortlink/windows-custom-installation#packet_capture_driver)&nbsp;for detailed info.

**Tip** :

- stop OA service then Run the attached command \> Restart OA service to apply changes.
- [stop-restart-oneagent-windows](https://docs.dynatrace.com/docs/shortlink/stop-restart-oneagent-windows)
- [oneagent-security-windows](https://docs.dynatrace.com/docs/shortlink/oneagent-security-windows)

Do it 💪 and keep us posted&nbsp;:wink:

---

<div class="post-metadata">

**Author:** ![Peter\_Youssef](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/peter_youssef/32/14668_2.png) [@Peter\_Youssef](https://community.dynatrace.com/u/Peter_Youssef)\
**Post date:** [October 19, 2024, 2:17pm UTC](https://community.dynatrace.com/t/dynatrace-oneagent-installation-with-windows-2019/48370/11 "2024-10-19T14:17:17Z")

</div>

Hi&nbsp;[@sundarv1](https://community.dynatrace.com/user/74312)

for OA auto-update command during the installation specify the attached command beside the installation script.

 ![2024-10-19_18h12_48.png](https://global.discourse-cdn.com/dynatrace/original/3X/2/3/2341468284666901077717edb5d60e94afe5a555.png)

---

<div class="post-metadata">

**Author:** ![sundarv1](https://avatars.discourse-cdn.com/v4/letter/s/65b543/32.png) [@sundarv1](https://community.dynatrace.com/u/sundarv1)\
**Post date:** [October 19, 2024, 2:21pm UTC](https://community.dynatrace.com/t/dynatrace-oneagent-installation-with-windows-2019/48370/12 "2024-10-19T14:21:55Z")

</div>

Hi Peter

What we are seeing&nbsp; npcap agent is installed for oneagent installation.&nbsp; we did oneagent update via UI and npcap oneagent is installed part of this installation.

Thanks

Sundar.v

Thanks

Sundar.v

---

<div class="post-metadata">

**Author:** ![Peter\_Youssef](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/peter_youssef/32/14668_2.png) [@Peter\_Youssef](https://community.dynatrace.com/u/Peter_Youssef)\
**Post date:** [October 19, 2024, 2:25pm UTC](https://community.dynatrace.com/t/dynatrace-oneagent-installation-with-windows-2019/48370/13 "2024-10-19T14:25:41Z")

</div>

Hi&nbsp;[@sundarv1](https://community.dynatrace.com/user/74312)&nbsp;  
Exactly, it’s included in the installation process, once you install or update the OA.

---

<div class="post-metadata">

**Author:** ![sundarv1](https://avatars.discourse-cdn.com/v4/letter/s/65b543/32.png) [@sundarv1](https://community.dynatrace.com/u/sundarv1)\
**Post date:** [October 19, 2024, 2:28pm UTC](https://community.dynatrace.com/t/dynatrace-oneagent-installation-with-windows-2019/48370/14 "2024-10-19T14:28:16Z")

</div>

If oneagent is installing npcap then what we need to do resolve the Remote desktop connecivity issue or host connecvity issue after agent upgraded successfully.

---

<div class="post-metadata">

**Author:** ![sundarv1](https://avatars.discourse-cdn.com/v4/letter/s/65b543/32.png) [@sundarv1](https://community.dynatrace.com/u/sundarv1)\
**Post date:** [October 19, 2024, 2:53pm UTC](https://community.dynatrace.com/t/dynatrace-oneagent-installation-with-windows-2019/48370/15 "2024-10-19T14:53:20Z")

</div>

If oneagent is installing npcap then what we need to do resolve the Remote desktop connecivity issue or host connecvity issue after agent upgraded successfully.

---

<div class="post-metadata">

**Author:** ![sundarv1](https://avatars.discourse-cdn.com/v4/letter/s/65b543/32.png) [@sundarv1](https://community.dynatrace.com/u/sundarv1)\
**Post date:** [October 20, 2024, 3:14am UTC](https://community.dynatrace.com/t/dynatrace-oneagent-installation-with-windows-2019/48370/16 "2024-10-20T03:14:23Z")

</div>

If oneagent is installing npcap then what we need to do resolve the Remote desktop connecivity issue or host connecvity issue after agent upgraded successfully.

---

<div class="post-metadata">

**Author:** ![p\_devulapalli](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/p_devulapalli/32/41590_2.png) [@p\_devulapalli](https://community.dynatrace.com/u/p_devulapalli)\
**Post date:** [October 21, 2024, 4:30am UTC](https://community.dynatrace.com/t/dynatrace-oneagent-installation-with-windows-2019/48370/17 "2024-10-21T04:30:40Z")

</div>

Hi&nbsp;[@sundarv1](https://community.dynatrace.com/user/74312)&nbsp;, Please see below, seems related

[https://community.dynatrace.com/t5/Troubleshooting/Network-monitoring-Potential-network-disruption-during-OneAgent/ta-p/237884](https://community.dynatrace.com/topic/237884)

---

<div class="post-metadata">

**Author:** ![sundarv1](https://avatars.discourse-cdn.com/v4/letter/s/65b543/32.png) [@sundarv1](https://community.dynatrace.com/u/sundarv1)\
**Post date:** [October 21, 2024, 4:35am UTC](https://community.dynatrace.com/t/dynatrace-oneagent-installation-with-windows-2019/48370/18 "2024-10-21T04:35:42Z")

</div>

Our oneagent versiion is 1.299 and Windows is 2019 and 1809. Wincap is not installed. only npcap is installed as part of oneagent installation.

---

<div class="post-metadata">

**Author:** ![jonhaugen](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/jonhaugen/32/34914_2.png) [@jonhaugen](https://community.dynatrace.com/u/jonhaugen)\
**Post date:** [October 21, 2024, 7:50am UTC](https://community.dynatrace.com/t/dynatrace-oneagent-installation-with-windows-2019/48370/19 "2024-10-21T07:50:33Z")

</div>

Indeed, to disable Npcap during Oneagent installation you will have to manually disable the feature from the Oneagent. Sometimes Dynatrace upgrades the Npcap version shipped with OA, which will trigger a Npcap installation and therefore the network disruption may happen to the 1809 servers.

---

<div class="post-metadata">

**Author:** ![sundarv1](https://avatars.discourse-cdn.com/v4/letter/s/65b543/32.png) [@sundarv1](https://community.dynatrace.com/u/sundarv1)\
**Post date:** [October 21, 2024, 7:58am UTC](https://community.dynatrace.com/t/dynatrace-oneagent-installation-with-windows-2019/48370/20 "2024-10-21T07:58:44Z")

</div>

Hi Jon

Thanks. Please let us know how to disable the&nbsp;Npcap version shipped with OA?

Should we use pcap\_driver=winpcap

If we use pcap\_driver = disable what is the impact of not having oneagent network monitoring module.

[Next page](https://community.dynatrace.com/t/dynatrace-oneagent-installation-with-windows-2019/48370.md?page=2)
