Keep Remote Desktop Display active when disconnect

1

1

Im trying to fix the problem with a missing GUI when i log off rdc. Im running a program that takes a partial screenshot but it is only working if i dont minimize or close the connection. It shows me the error: ".Net Framework... Unknown Exception..."

This forces me to have my computer always on too. Im looking for a solution to keep the Desktop active and also the Screen Resolution.

I tried allrady a few things like: http://blogs.microsoft.co.il/arnona/2016/01/03/keeping-an-active-desktop-session/

and I also tried to disconnect with %windir%\System32\tscon.exe RDP-Tcp#NNN /dest:console Im not sure if this kind of disconnect worked for me, but the main problem here is obviously the changing screen resolution because all the dinows are on different places after relogging. I need the windows to hold the exact coordinates. I cant find any way to keep a static resolution.

Is there any software which can help me with my problem?

xDrago

Posted 2018-02-09T12:27:10.657

Reputation: 111

3

Try creating your initial session using the solution found here. You should then be able to connect to and later disconnect from the session without having the problem.

– I say Reinstate Monica – 2018-02-09T12:33:52.870

Thanks you, but its mentioned to make sure that the software is running when the user automatically logs in. I cant put my software in autostart since several settings have to be made by a user before disconnecting – xDrago – 2018-02-09T12:37:02.117

I know that. That's why I said you should be able to connect to the session after it's created. You could manually start your program then. You should try and see if it works. – I say Reinstate Monica – 2018-02-09T12:40:16.030

Sure, I will test it! I hope the screen resolution will stay the same or is there any way to make it "static"? – xDrago – 2018-02-09T12:41:34.880

The resolution will be that configured for the physical display connected to the server. – I say Reinstate Monica – 2018-02-09T12:42:42.153

Unfortunately its not working so far. Still the same issue. He mentioned to "populate" the Registry values. How to do this? – xDrago – 2018-02-09T12:54:29.800

How to modify the Registry – I say Reinstate Monica – 2018-02-09T12:58:43.827

I tried everything now. I figured out that leaving the Session with tscon.exe like mentioned above, keeps the program running without errors but the screenshots are black. – xDrago – 2018-02-09T18:07:40.433

It seems that your screen shot application isn't compatible with a remote desktop session when used this way. :( – I say Reinstate Monica – 2018-02-09T18:08:57.020

Im using C# and CopyFromScreen with specific coordinates if this helps. The only alternative to get this running is to set up a server at home with a monitor running 24/7 :( CopyFromScreen(rect.Left, rect.Top, 0, 0, bmp.Size, CopyPixelOperation.SourceCopy); – xDrago – 2018-02-09T18:16:47.653

No answers