<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Monitor a process from specific user with Process.CountEx fails]]></title><description><![CDATA[<p dir="auto">Hi,<br />
I have to monitor if a process is running under a specific user in Windows.</p>
<p dir="auto">I use Process.CountEx for doing that.</p>
<p dir="auto">In Taskmanager the username is shown like AD001\z004abcd<br />
Processname is EB_BPM.exe</p>
<p dir="auto">I tried: Process.CountEx("EB_BPM.exe",,"AD001\z004abcd")<br />
and ( in case the Backslash is the problem):  Process.CountEx("EB_BPM.exe",,"(?i)z004abcd")</p>
<p dir="auto">Both fail.<br />
Using just  Process.CountEx("EB_BPM.exe") works, but I need to have the username.</p>
<p dir="auto">Using  NetXMS 5.2.1<br />
Any idea?</p>
<p dir="auto">Stefan</p>
]]></description><link>https://forum.netxms.org/topic/8197/monitor-a-process-from-specific-user-with-process.countex-fails</link><generator>RSS for Node</generator><lastBuildDate>Fri, 13 Nov 2026 07:25:44 GMT</lastBuildDate><atom:link href="https://forum.netxms.org/topic/8197.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 18 Jun 2025 06:26:34 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Monitor a process from specific user with Process.CountEx fails on Tue, 08 Jul 2025 10:25:51 GMT]]></title><description><![CDATA[<p dir="auto">Agent uses GetSecurityInfo win api function, please check information about needed access rights here:<br />
<a href="https://learn.microsoft.com/en-us/windows/win32/api/aclapi/nf-aclapi-getsecurityinfo#remarks" rel="nofollow ugc">https://learn.microsoft.com/en-us/windows/win32/api/aclapi/nf-aclapi-getsecurityinfo#remarks</a></p>
]]></description><link>https://forum.netxms.org/post/34596</link><guid isPermaLink="true">https://forum.netxms.org/post/34596</guid><dc:creator><![CDATA[Filipp Sudanov]]></dc:creator><pubDate>Tue, 08 Jul 2025 10:25:51 GMT</pubDate></item><item><title><![CDATA[Reply to Monitor a process from specific user with Process.CountEx fails on Wed, 02 Jul 2025 08:26:53 GMT]]></title><description><![CDATA[<p dir="auto">Running it as system now shows the usernames in the Process View. But why doesn't it work with an administrative account?</p>
]]></description><link>https://forum.netxms.org/post/34585</link><guid isPermaLink="true">https://forum.netxms.org/post/34585</guid><dc:creator><![CDATA[stoffmann]]></dc:creator><pubDate>Wed, 02 Jul 2025 08:26:53 GMT</pubDate></item><item><title><![CDATA[Reply to Monitor a process from specific user with Process.CountEx fails on Wed, 02 Jul 2025 06:22:41 GMT]]></title><description><![CDATA[<p dir="auto">Please try to run the agent under system user to see if that makes any difference</p>
]]></description><link>https://forum.netxms.org/post/34582</link><guid isPermaLink="true">https://forum.netxms.org/post/34582</guid><dc:creator><![CDATA[Filipp Sudanov]]></dc:creator><pubDate>Wed, 02 Jul 2025 06:22:41 GMT</pubDate></item><item><title><![CDATA[Reply to Monitor a process from specific user with Process.CountEx fails on Wed, 02 Jul 2025 05:20:05 GMT]]></title><description><![CDATA[<p dir="auto">We have the agent running with a domain account, that is member of the Administrators group.</p>
]]></description><link>https://forum.netxms.org/post/34581</link><guid isPermaLink="true">https://forum.netxms.org/post/34581</guid><dc:creator><![CDATA[stoffmann]]></dc:creator><pubDate>Wed, 02 Jul 2025 05:20:05 GMT</pubDate></item><item><title><![CDATA[Reply to Monitor a process from specific user with Process.CountEx fails on Tue, 01 Jul 2025 12:15:45 GMT]]></title><description><![CDATA[<p dir="auto">Well, that explains why the metric does not return what you expect. </p>
<p dir="auto">How do you run the agent - under SYSTEM user or in some other way?</p>
]]></description><link>https://forum.netxms.org/post/34580</link><guid isPermaLink="true">https://forum.netxms.org/post/34580</guid><dc:creator><![CDATA[Filipp Sudanov]]></dc:creator><pubDate>Tue, 01 Jul 2025 12:15:45 GMT</pubDate></item><item><title><![CDATA[Reply to Monitor a process from specific user with Process.CountEx fails on Tue, 01 Jul 2025 10:15:01 GMT]]></title><description><![CDATA[<p dir="auto">In process view the column user is almost empty.</p>
<p dir="auto">Only BUILTIN\Administrators shows up for some processes.</p>
<hr />
<p dir="auto"><img src="/assets/uploads/files/smf/0000000006936-NetXMSProcesses.png" alt="NetXMSProcesses.png" class="img-markdown  img-fluid" width="590" height="557" /></p>
]]></description><link>https://forum.netxms.org/post/34575</link><guid isPermaLink="true">https://forum.netxms.org/post/34575</guid><dc:creator><![CDATA[stoffmann]]></dc:creator><pubDate>Tue, 01 Jul 2025 10:15:01 GMT</pubDate></item><item><title><![CDATA[Reply to Monitor a process from specific user with Process.CountEx fails on Tue, 01 Jul 2025 10:04:39 GMT]]></title><description><![CDATA[<p dir="auto">how do you see this process in "Processes" view for that node?</p>
]]></description><link>https://forum.netxms.org/post/34572</link><guid isPermaLink="true">https://forum.netxms.org/post/34572</guid><dc:creator><![CDATA[victor]]></dc:creator><pubDate>Tue, 01 Jul 2025 10:04:39 GMT</pubDate></item><item><title><![CDATA[Reply to Monitor a process from specific user with Process.CountEx fails on Thu, 26 Jun 2025 12:30:37 GMT]]></title><description><![CDATA[<p dir="auto">Do You need more information to solve this? Please let me know.</p>
<p dir="auto">Regards</p>
<p dir="auto">Stefan</p>
]]></description><link>https://forum.netxms.org/post/34562</link><guid isPermaLink="true">https://forum.netxms.org/post/34562</guid><dc:creator><![CDATA[stoffmann]]></dc:creator><pubDate>Thu, 26 Jun 2025 12:30:37 GMT</pubDate></item><item><title><![CDATA[Reply to Monitor a process from specific user with Process.CountEx fails on Mon, 23 Jun 2025 09:12:45 GMT]]></title><description><![CDATA[<p dir="auto">I tried. It's also not working. Always returning 0.</p>
<p dir="auto">In logfile with Loglevel 7 I find:</p>
<p dir="auto">2025.06.23 09:08:32.521 *D* [comm.cs.1          ] Requesting metric "Process.CountEx("EB_BPM.exe",,"z004abcd")"<br />
2025.06.23 09:08:32.555 *D* [comm.cs.1          ] GetMetricValue("Process.CountEx("EB_BPM.exe",,"z004abcd")"): 0 (SUCCESS) value = "0"</p>
<p dir="auto">But the process is running.</p>
]]></description><link>https://forum.netxms.org/post/34545</link><guid isPermaLink="true">https://forum.netxms.org/post/34545</guid><dc:creator><![CDATA[stoffmann]]></dc:creator><pubDate>Mon, 23 Jun 2025 09:12:45 GMT</pubDate></item><item><title><![CDATA[Reply to Monitor a process from specific user with Process.CountEx fails on Fri, 20 Jun 2025 12:16:46 GMT]]></title><description><![CDATA[<p dir="auto">Did you try<br />
Process.CountEx("EB_BPM.exe",,"z004abcd")<br />
?</p>
]]></description><link>https://forum.netxms.org/post/34535</link><guid isPermaLink="true">https://forum.netxms.org/post/34535</guid><dc:creator><![CDATA[Filipp Sudanov]]></dc:creator><pubDate>Fri, 20 Jun 2025 12:16:46 GMT</pubDate></item></channel></rss>