question

BrianHart-9063 avatar image
0 Votes"
BrianHart-9063 asked BrianHart-9063 answered

Prevent RDApp from spawning other applications

Server 2019.

Is it possible to prevent a RemoteApp from spawning other applications? We have an application that, as part of its user interface, has a button that shows the Task Manager. A user clicked that, then used it to spawn Server Manager.

If I can configure the particular RemoteApp to disallow spawning any other processes, I will resolve the problem by configuring that. If not, I have to go back to the software vendor and point out their egregious security hole.

remote-desktop-services
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

GraceHE-MSFT avatar image
0 Votes"
GraceHE-MSFT answered

Hi,
Thank you for posting your query. According to your description, you want to stop spawing during RDP to a specific app. Via research, here is an official document may help you slove this problem.

Remote Desktop or RemoteApp session does not terminate due to spawned splwow64.exe process
https://docs.microsoft.com/en-us/troubleshoot/windows-server/remote/rd-or-remoteapp-session-not-terminate

Best Regards,
Grace

---If the suggestions above are helpful, please ACCEPT ANSWER. Really appreciate. This will also help others with similar issue to find this post quickly. ---

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

BrianHart-9063 avatar image
0 Votes"
BrianHart-9063 answered

No, that is not it at all.

That link addresses how to ensure that a spawned process also closes when the RemoteApp itself closes, and that is not the question at all. My question is how to prevent a RemoteApp from spawning any other process in the first place. I want only the RemoteApp itself--no other applications--to be able to run in the session opened when the RemoteApp is opened.




5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

GraceHE-MSFT avatar image
0 Votes"
GraceHE-MSFT answered

Hi,
Thank you for your feedback and sincerely sorry for the delay of rely. I think the spawning is the problem that bothers you. Here is a related question and link that may help you.

RemoteApp spawns extra RDP windows
https://social.technet.microsoft.com/Forums/ie/en-US/b2e08528-b638-4705-a19f-f10becc95b5d/remoteapp-spawns-extra-rdp-windows?forum=winserverTS

Best Regards,
Grace

---If the suggestions above are helpful, please ACCEPT ANSWER. Really appreciate. This will also help others with similar issue to find this post quickly. ---

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

BrianHart-9063 avatar image
0 Votes"
BrianHart-9063 answered

No. That post is all about spawning an extra RDP window. The problem has nothing to do with extra RDP windows. I need to prevent the Remote Desktop application from even being able to open other applications. These do not open another window anyway; they open inside the same RD session, so they do not open another Remote Desktop window.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

GraceHE-MSFT avatar image
0 Votes"
GraceHE-MSFT answered

Hi,
Thank you for your feedback. Via my research and tests, here are some hints for you.
First, you could try to apply commands to the according reomteapps on the RDCB.
To kill a process by its PID, type the command:
taskkill /F /PID pid_number
To kill a process by its name, type the command:
taskkill /IM "process name" /F
![82610-image.png][1]

Secondly, you could try to stop other processes. Here is a link you may refer to. Please note that this is not a Microsoft official link and it may change. So please try it after some tests.
https://winaero.com/kill-process-windows-10/


---If the suggestions above are helpful, please ACCEPT ANSWER. Really appreciate. This will also help others with similar issue to find this post quickly. ---


image.png (295.3 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

BrianHart-9063 avatar image
0 Votes"
BrianHart-9063 answered

This all assumes that I am the programmer of the application and can embed the logic in the program or that I have a way to capture the application beforehand.

Further research reveals that the activity I want is, indeed, required to be embedded in the application itself; it is up to the programmer of the application to provide a way to sense an existing instances of the application for the current user and prevent multiple instances; RDApp has no native capacity to block multiple instances. I was mis-informed when I assumed there was a way to do this.

I have contacted then vendor, and buried within their setup, they do have a way for me to specify that a user can have only one instance. So we are implementing that.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.