Windows 10: Close remote desktop session and launch an executable

Discus and support Close remote desktop session and launch an executable in Windows 10 Support to solve the problem; Having a Windows 10 Enteriprise 2016 LTSB installed on an industrial PC for a totem with a touch screen. This PC run a client application, for simple... Discussion in 'Windows 10 Support' started by davide445, Feb 8, 2019.

  1. davide445 Win User

    Close remote desktop session and launch an executable


    Having a Windows 10 Enteriprise 2016 LTSB installed on an industrial PC for a totem with a touch screen.

    This PC run a client application, for simple operations I need sometimes to access the PC with Remote Desktop from a remote location.

    Finished my activity if I simply exit from Remote Desktop the PC will show a login screen to the users, obviously not what wanted

    Using a .bat script with
    Code: tscon.exe 1 /dest:console[/quote] as administrator I'm able to leave the session and the PC didn't show the login screen, but shows the desktop, again not what I wanted.

    Adding this command before the other
    Code: start "" "C:\Users\User\Desktop\BikeCube\BikeCube.exe"[/quote] it launch the client but didn't close the session.

    There is a way to close the session and immediately launch the client, or the opposite.
    The final status need to be the the touch screen with the client app opened.

    :)
     
    davide445, Feb 8, 2019
    #1

  2. Remote Desktop - Screen resolution in remote session

    I have connected to a remote desktop session and the windows in the remote session are all too small for me to see.

    I have edited the remote desktop connection settings and cannot seem to make anything larger.

    I am using a new Dell Inspiron Laptop which has a very high screen resolution 3840 x 2160

    Any suggestions appreciated

    Thank you
     
    GreenlaneAC, Feb 8, 2019
    #2
  3. how to force closing program when log off (remote desktop connection)

    There are two ways to terminate a Remote Desktop session:

    • By logging off. This will close all active applications.
    • By closing the session. All active applications will remain open. This is by design.
    If you wish to close an orphaned application then you can do it with a scheduled command that runs once every ten minutes. It would use one of these commands to determine if there was an active Remote Desktop session:

    query session

    query user

    If no live session was present then it would use taskkill.exe to kill the unwanted application. Unsaved data would be lost.
     
    Frederik Long, Feb 8, 2019
    #3
  4. ziggggy Win User

    Close remote desktop session and launch an executable

    Logging in locally after remote desktop session is very slow on 1803


    There is only 1 user account on the desktop. Sometimes I close the remote desktop session on the laptop and other times I just close the lid on the laptop, putting the laptop to sleep, without closing remote desktop. Either way, when I try to log into the same account on my desktop, I get the blue screen for a period of time. This never happened before 1803.
     
    ziggggy, Feb 8, 2019
    #4
Thema:

Close remote desktop session and launch an executable

Loading...
  1. Close remote desktop session and launch an executable - Similar Threads - Close remote desktop

  2. Remote Desktop without loging off after Session

    in Windows 10 Network and Sharing
    Remote Desktop without loging off after Session: Hi, I would like to know if it is possible to do login on a remote computer using remote desktop but I want the session to stay on doing automatic tasks and not go to logon screen even if I close the remote desktop conection on the client side is that possible? 131171
  3. Remote lock session

    in User Accounts and Family Safety
    Remote lock session: I would like to be able to remote suspend time allotted for my child's account from time to time -- you know, to get them to come eat, etc. https://answers.microsoft.com/en-us/windows/forum/all/remote-lock-session/449a1a86-02e0-48fe-8641-89fd7de8f8e7"
  4. Close remote desktop session and launch an executable

    in Windows 10 Network and Sharing
    Close remote desktop session and launch an executable: Having a Windows 10 Enteriprise 2016 LTSB installed on an industrial PC for a totem with a touch screen. This PC run a client application, for simple operations I need sometimes to access the PC with Remote Desktop from a remote location. Finished my activity if I simply...
  5. Remote Desktop Session Closes When I try to do something on the host machine

    in Windows 10 Customization
    Remote Desktop Session Closes When I try to do something on the host machine: Ok, this is a hard one to explain, but here we go. I've updated 2 machines to Windows 10 ver1809. One has Pro, the other Home Premium. Pro has Remote Desktop set and I try to link into with the Premium Machine. The session starts and operates until I try to do something...
  6. Remote Desktop Randomly Closes

    in Windows 10 Network and Sharing
    Remote Desktop Randomly Closes: When I try to connect to my work server via Remote Desktop, it randomly closes, sometimes after a few seconds, sometimes after a few minutes. I have Windows 10 Home 1803 17134.407 When I use other computers it works perfectly. I have disabled EVERYTHING and the problem...
  7. Logging in locally after remote desktop session is very slow on 1803

    in Windows 10 Support
    Logging in locally after remote desktop session is very slow on 1803: Since v1803, whenever I try to log in locally after a remote desktop session, my screen changes to blue for up to 5 minutes before I can see the desktop. This is on a custom built desktop with a ryzen 7 cpu. I did a clean install of v1803 to see if that would fix the issue,...
  8. Disable login screen after remote desktop session

    in Windows 10 Network and Sharing
    Disable login screen after remote desktop session: Hello! I want to know if it possible to disable the annoying login screen in the computer after remote desktop session. I have netplwiz with automatically logins after boot and I know the trick tscon.exe 0 /dest:console and it works, but I use remote desktop to connect...
  9. Cannot consistently rdp to remote desktop session

    in Windows 10 Network and Sharing
    Cannot consistently rdp to remote desktop session: Normally if I RDP to an active remote desktop with only my single user account with admin rights, remote desktop signs out, and I connect via rdp no problem. However recently, it does not sign out out remote user, and the (RDP lient jumps to a OTHER USER login screen....
  10. Windows 10 remote desktop session

    in Windows 10 Network and Sharing
    Windows 10 remote desktop session: I'm trying to connect to my work computer using remote desktop. I have physical access to both. I am getting the following error: your computer could not connect to another console session on the remote computer because you already have a console session in progress. I...