Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Launching remote app creates a duplicate user log-in #99

Closed
j-omega opened this issue Dec 1, 2023 · 5 comments
Closed

Launching remote app creates a duplicate user log-in #99

j-omega opened this issue Dec 1, 2023 · 5 comments

Comments

@j-omega
Copy link

j-omega commented Dec 1, 2023

I am hosting my remote apps on Windows 10 Professional 22H2.

When I connect to an app from a client PC, the app launches as expected. However, if I am already logged into the host PC, the remote app is started in a new (duplicate) user session. See the attached image below.

This is not the desired behavior. Ideally, if I am already logged into the PC, the RemoteApp connection would be made to the existing user session.

Is the behavior that I am observing the expected behavior, or is it due to a misconfiguration on my end?

duplicate-user

@j-omega j-omega changed the title Launch RemoteApp on client creates a duplicate user log-in Launching RemoteApp creates a duplicate user log-in Dec 1, 2023
@j-omega j-omega changed the title Launching RemoteApp creates a duplicate user log-in Launching remote app creates a duplicate user log-in Dec 1, 2023
@kimmknight
Copy link
Owner

Try adding the following line to your RDP file:

administrative session:i:1

This will force console mode, which should take over the locally logged-on user session. It is the same as running:

mstsc.exe /console

I have added issue #100 (feature request) to have this be an option in Create Client Connection.

@kimmknight
Copy link
Owner

And to answer your question @j-omega, yes, what you seem to be experiencing is normal/expected behaviour for an RDP session.

@j-omega
Copy link
Author

j-omega commented Dec 21, 2023

I added the line, but the RemoteApp connection still creates a duplicate session. I should also note that a regular remote desktop session connects me to the console session. I wonder if this is related to the fact that Windows 10 (not Window Server) is the RemoteApp host.

@kimmknight
Copy link
Owner

Ok, thanks for the update @j-omega

There are other RDP file options and local/group policy options that might affect this behaviour.

For a list of RDP file options, check out my RDP File Editor:

https://kimmknight.github.io/rdpfileeditor/

Let us know if you find a solution.

@sashaqwert
Copy link

I added the line, but the RemoteApp connection still creates a duplicate session.

Windows starts a separate session for RemoteApp. Otherwise, Explorer.exe from the remote PC would overlap the local explorer.exe.
If you want to avoid session duplication, there are 2 solutions:

  1. Disable automatic last user logon (this method will mainly help if the computer is not always used locally): https://admx.help/?Category=Windows_11_2022&Policy=Microsoft.Policies.WindowsLogon2::AutomaticRestartSignOn

  2. Try use program launch in a session instead of RemoteApp:
    This can be done by adding the line to the RDP file

alternate shell:s:1.exe

(But it's better not to do that...)

Repository owner locked and limited conversation to collaborators Jan 23, 2024
@kimmknight kimmknight converted this issue into discussion #108 Jan 23, 2024

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants