<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Could not identify process owning the current foreground window in Product Forum</title>
    <link>https://community.blueprism.com/t5/Product-Forum/Could-not-identify-process-owning-the-current-foreground-window/m-p/85729#M36685</link>
    <description>Hello!

We have tuned process  that successfully running on Windows Server 2012 RDP Session. Session is always on on server.

This process starts by scheduler and there are some independent sequent interactions with few applications (PUTTY, IBM® WebSphere and Internet Explorer).

So, when the process runs in active RDP session it finishes successfully. It also starts and finishes successfully in minimized session window.

But when we disconnect RDP session, wait process to start and finish and then login into session again, interactions with some apps have been failed.

The process fails with the message:

"Could not identify process owning the current foreground window". This concerns most of all  to interactions where we use €œGlobal sent keys€&amp;#157; actions.

For example operations with Internet Explorer where we use Read and Write stages are finished fine.

What could be the reason of this issue?</description>
    <pubDate>Mon, 31 Jul 2017 13:56:00 GMT</pubDate>
    <dc:creator>Tetiana_shkavro</dc:creator>
    <dc:date>2017-07-31T13:56:00Z</dc:date>
    <item>
      <title>Could not identify process owning the current foreground window</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Could-not-identify-process-owning-the-current-foreground-window/m-p/85729#M36685</link>
      <description>Hello!

We have tuned process  that successfully running on Windows Server 2012 RDP Session. Session is always on on server.

This process starts by scheduler and there are some independent sequent interactions with few applications (PUTTY, IBM® WebSphere and Internet Explorer).

So, when the process runs in active RDP session it finishes successfully. It also starts and finishes successfully in minimized session window.

But when we disconnect RDP session, wait process to start and finish and then login into session again, interactions with some apps have been failed.

The process fails with the message:

"Could not identify process owning the current foreground window". This concerns most of all  to interactions where we use €œGlobal sent keys€&amp;#157; actions.

For example operations with Internet Explorer where we use Read and Write stages are finished fine.

What could be the reason of this issue?</description>
      <pubDate>Mon, 31 Jul 2017 13:56:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Could-not-identify-process-owning-the-current-foreground-window/m-p/85729#M36685</guid>
      <dc:creator>Tetiana_shkavro</dc:creator>
      <dc:date>2017-07-31T13:56:00Z</dc:date>
    </item>
    <item>
      <title>RDP is an unsuitable</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Could-not-identify-process-owning-the-current-foreground-window/m-p/85730#M36686</link>
      <description>RDP is an unsuitable virtualisation technology and is specifically not recommended.
&lt;A href="https://portal.blueprism.com/system/files/product/productpublic/4.2/Blu…" target="test_blank"&gt;https://portal.blueprism.com/system/files/product/productpublic/4.2/Blu…&lt;/A&gt;
The reason for your error is that the desktop UI is destroyed when the RDP connection is closed. This does not stop the remote machine (or BP) from working, but any activity that requires the desktop UI, such as mouse clicks, keystrokes, activate or screenshots (ie surface automation) will not work. So if you have a process that does none of these things, it will work fine. The confusing thing is that when you reconnect RDP, the desktop is re-established, everything seems normal, and it's hard to see what the problem was. As a test try running a process that captures a screenshot - the resulting image will be entirely black because the desktop is not there.
In addition to it's inability to host a persistent desktop, RDP also does not offer much in the way of security or audit.
One possible work around is to use Login Agent to get your machines logged in, and run your processes without watching via RDP. This 'lights out' operating is how it should be in Production anyway.</description>
      <pubDate>Mon, 31 Jul 2017 14:13:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Could-not-identify-process-owning-the-current-foreground-window/m-p/85730#M36686</guid>
      <dc:creator>John__Carter</dc:creator>
      <dc:date>2017-07-31T14:13:00Z</dc:date>
    </item>
    <item>
      <title>John, thanks a lot for your</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Could-not-identify-process-owning-the-current-foreground-window/m-p/85731#M36687</link>
      <description>John, thanks a lot for your answer! We will try to follow your advice.</description>
      <pubDate>Mon, 31 Jul 2017 17:45:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Could-not-identify-process-owning-the-current-foreground-window/m-p/85731#M36687</guid>
      <dc:creator>Tetiana_shkavro</dc:creator>
      <dc:date>2017-07-31T17:45:00Z</dc:date>
    </item>
    <item>
      <title>Hi,</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Could-not-identify-process-owning-the-current-foreground-window/m-p/85732#M36688</link>
      <description>Hi,
I this resolved? If yes could you please share with us the solution.
I have tried running through login agent,but i still get the foreground error.
Regards,
Ravinder Saini</description>
      <pubDate>Wed, 30 Aug 2017 00:21:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Could-not-identify-process-owning-the-current-foreground-window/m-p/85732#M36688</guid>
      <dc:creator>Ravindersaini</dc:creator>
      <dc:date>2017-08-30T00:21:00Z</dc:date>
    </item>
    <item>
      <title>Is there a good way to debug</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Could-not-identify-process-owning-the-current-foreground-window/m-p/85733#M36689</link>
      <description>Is there a good way to debug this with login agent?</description>
      <pubDate>Wed, 18 Oct 2017 18:59:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Could-not-identify-process-owning-the-current-foreground-window/m-p/85733#M36689</guid>
      <dc:creator>coreydrees</dc:creator>
      <dc:date>2017-10-18T18:59:00Z</dc:date>
    </item>
    <item>
      <title>create a batch script that</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Could-not-identify-process-owning-the-current-foreground-window/m-p/85734#M36690</link>
      <description>create a batch script that launches power shell and takes a screen print of window add it scheduled task execute remotely also create a batch script to check to open powershell and check if workstation is locked or unlocked put the generated file in network share when robot is running.</description>
      <pubDate>Wed, 18 Oct 2017 23:16:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Could-not-identify-process-owning-the-current-foreground-window/m-p/85734#M36690</guid>
      <dc:creator>PravinBenjamin</dc:creator>
      <dc:date>2017-10-18T23:16:00Z</dc:date>
    </item>
    <item>
      <title>Hi.  Please share the…</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Could-not-identify-process-owning-the-current-foreground-window/m-p/85735#M36691</link>
      <description>Hi.&amp;nbsp; Please share the solution for this issue.&amp;nbsp; Thank you.</description>
      <pubDate>Fri, 22 Dec 2017 08:41:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Could-not-identify-process-owning-the-current-foreground-window/m-p/85735#M36691</guid>
      <dc:creator>LanAmaranto</dc:creator>
      <dc:date>2017-12-22T08:41:00Z</dc:date>
    </item>
    <item>
      <title>RE: RDP is an unsuitable</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Could-not-identify-process-owning-the-current-foreground-window/m-p/85736#M36692</link>
      <description>Hi John,&lt;BR /&gt;&lt;BR /&gt;I have similar situation, I have configured the Login-Agent and it is working fine.&amp;nbsp;&lt;BR /&gt;However, UI tasks are still getting failed in the server. Is there any workaround for this.&amp;nbsp;&lt;BR /&gt;I have scheduled Login-Agent 5m before actual Bot Run.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Please advise.&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Sumanth B&lt;BR /&gt;Developer&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Wed, 25 Sep 2019 11:09:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Could-not-identify-process-owning-the-current-foreground-window/m-p/85736#M36692</guid>
      <dc:creator>SumanthB</dc:creator>
      <dc:date>2019-09-25T11:09:00Z</dc:date>
    </item>
  </channel>
</rss>

