# Monitoring Windows Service by Display name

**URL:** <https://community.dynatrace.com/t/monitoring-windows-service-by-display-name/6030>\
**Category:** Open Q&A\
**Tags:** services-classic\
**Created:** [May 2, 2017, 9:48am UTC](https://community.dynatrace.com/t/monitoring-windows-service-by-display-name/6030 "2017-05-02T09:48:16Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![nalin\_agrawal](https://avatars.discourse-cdn.com/v4/letter/n/e47774/32.png) [@nalin\_agrawal](https://community.dynatrace.com/u/nalin_agrawal)\
**Post date:** [May 2, 2017, 9:48am UTC](https://community.dynatrace.com/t/monitoring-windows-service-by-display-name/6030/1 "2017-05-02T09:48:16Z")

</div>

Hi All

Currently in Dynatrace we can monitor windows services, however it only captures the name of the process and the Service name. But it does not capture the Display Name. In some of the environments we have seen large number of services where the process name is same but Display names are different.

If Dynatrace can capture the display name as well it will be easier to know which particular service is failing or having problems.

Regards

Nalin

---

<div class="post-metadata">

**Author:** ![apasoquen1](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/apasoquen1/32/36450_2.png) [@apasoquen1](https://community.dynatrace.com/u/apasoquen1)\
**Post date:** [May 18, 2017, 12:38pm UTC](https://community.dynatrace.com/t/monitoring-windows-service-by-display-name/6030/2 "2017-05-18T12:38:30Z")

</div>

So how do you configure this?

---

<div class="post-metadata">

**Author:** ![michael\_kopp](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/michael_kopp/32/13415_2.png) [@michael\_kopp](https://community.dynatrace.com/u/michael_kopp)\
**Post date:** [March 14, 2018, 5:08pm UTC](https://community.dynatrace.com/t/monitoring-windows-service-by-display-name/6030/3 "2018-03-14T17:08:12Z")

</div>

To get the name we would have to do some system calls and read the registry which is all rather expensive and it has to happen during process startup. In short we might not do this.

However we can help you here, you can define environment variables for a windows service in the registry

\HKEY\_LOCAL\_MACHINE\SYSTEM\CurrentControlSet\Services\TheNameOfTheService

Create a key called  
“Environment” that is type REG\_MULTISZ.

 ![16125-2018-03-14-18-01-16-clipboard.png](https://global.discourse-cdn.com/dynatrace/original/3X/e/d/ed5bbceb86f56fc112cef88180650138402b7b96.png)

The value of the Environment  
key the contains entries like the below

 ![16126-2018-03-14-18-03-03-clipboard.png](https://global.discourse-cdn.com/dynatrace/original/3X/9/b/9bcdecdf4df1f6c888c06db22507c79e64db2d61.png)

With this you can leverage these features

\* [Process grouping based on environment variables](https://www.dynatrace.com/support/help/infrastructure/processes/can-i-customize-how-process-groups-are-detected/)

\* [Tag your Windows services based on environment variable content](https://www.dynatrace.com/news/blog/automate-tagging-entities-environment-variables/)

\* [Define extra meta data based on environment variables](https://www.dynatrace.com/news/blog/define-process-group-properties-via-environment-variables-kubernetes-annotations/)

\* you can use the tags and extra meta data in [process group naming rules](https://www.dynatrace.com/news/blog/custom-automated-process-group-naming-for-large-dynamic-environments/) or [service naming rules](https://www.dynatrace.com/support/help/server-side-services/introduction/can-i-customize-naming-for-auto-detected-server-side-services/)

I hope this helps, together with regedit files you can easily automate this.

> **[Service naming rules in Service Detection v1 (Services Classic)](https://docs.dynatrace.com/docs/observe/application-observability/services-classic/service-detection/service-detection-v1/customize-service-naming)**
>
> Use naming rules to customize and enhance the automated naming of your services.

---

<div class="post-metadata">

**Author:** ![jean\_louis\_lorm](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/jean_louis_lorm/32/37567_2.png) [@jean\_louis\_lorm](https://community.dynatrace.com/u/jean_louis_lorm)\
**Post date:** [September 6, 2018, 11:48am UTC](https://community.dynatrace.com/t/monitoring-windows-service-by-display-name/6030/4 "2018-09-06T11:48:16Z")

</div>

Can this configuration allow me to display the Print Spooler windows utility as a dedicated process group? The tag appears for the whole Service Windows and I can’t see the Print spooler as a specific process group.

---

<div class="post-metadata">

**Author:** ![hgouramoni](https://avatars.discourse-cdn.com/v4/letter/h/c2a13f/32.png) [@hgouramoni](https://community.dynatrace.com/u/hgouramoni)\
**Post date:** [December 2, 2019, 10:41am UTC](https://community.dynatrace.com/t/monitoring-windows-service-by-display-name/6030/5 "2019-12-02T10:41:52Z")

</div>

Can you tell me, how can you configure this Print Spooler service in dynatrace. I am unable to monitor this service. one of our client wants this. Can you please respond as soon as possible.
