Remote App Session List, App Name

reuvygroovy 781 Reputation points
2020-11-05T21:46:46.22+00:00

Is there a way to get the name of the RemoteApp a user opened up from the session list and/or event log and/or somewhere else?

When viewing the list of users in Server Manager, we see the users, but we don't see for example if they opened up Calc or Notepad, which we would like to know (for troubleshooting purposes).

Is the name of the App (ID, etc.) written somewhere?

Remote Desktop
Remote Desktop
A Microsoft app that connects remotely to computers and to virtual apps and desktops.
4,604 questions
0 comments No comments
{count} votes

Accepted answer
  1. reuvygroovy 781 Reputation points
    2020-11-08T08:35:58.977+00:00

    Wow! I didn't even think to look at the client logs. Is there nothing written on the server?


3 additional answers

Sort by: Most helpful
  1. Jenny Yan-MSFT 9,336 Reputation points
    2020-11-06T02:21:41.743+00:00

    You may use get process command either locally or remotely to check the users running specific programs on the session host servers.

    Basic steps could be like:

    • Get-RDSessionHost to get a list of RDSH servers in a specific collection
    • Get-Process or qprocess.exe to query servers to see which users are running specific program

    Result is like:
    37853-image.png
    Reference links:
    Get process remotely including username using PowerShell
    https://www.powershellbros.com/get-process-remotely-for-user-using-powershell/
    Get-Process
    https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.management/get-process?view=powershell-6
    Please note: Information posted in the given link is hosted by a third party. Microsoft does not guarantee the accuracy and effectiveness of information.

    ----------

    Hope this helps and please help to accept as Answer if the response is useful.

    Thanks,
    Jenny

    0 comments No comments

  2. reuvygroovy 781 Reputation points
    2020-11-06T07:04:10.517+00:00

    Hi Jenny, I know that , but I was wondering if there is something "built-in". Seems like core functionality which is missing.

    0 comments No comments

  3. Jenny Yan-MSFT 9,336 Reputation points
    2020-11-06T09:24:49.603+00:00

    Hi,

    I did a quick test in my VM and found following two event ID will record remoteapp name and user account around the time I launched the application:

    Log Path:
    Applications and Services Logs>Microsoft>Windows>RemoteApp and Desktop Connections>Operational
    Event ID 1041
    37997-image.png

    Event ID 1040
    38024-image.png

    ----------

    Hope this helps and please help to accept as Answer if the response is useful.

    Thanks,
    Jenny

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.