Windows server 2012 sign out or disconnect? - windows-server-2012-r2

I am connected with RDP on a remote server.
I just want to leave and I have two options:
1) Sign out
2) Disconnect
What is the difference between these two?

Sign Out - interrupt sessions and all active programs started by you in session. Same as 'Log Off' or 'Log Out'.
Disconnect - all programs started by you in session remain active in background. You can reconnect, and continue using the same session.

Related

GCP windows VM does not work when logged off

I am running a Windows Server VM on GCP.
When logging in via Remote Desktop, I am starting certain applications which should actively run for a couple of hours.
But when closing my Remote Desktop Connection, all applications stop working.
How can I prevent this from happening?
In order to keep the session ongoing, you'll have to configure the RD Session Host time limits.
Open the group policy editor with: Windows+R, then type gpedit.msc, confirm with Enter.
Then in the management console, navigate to:
Computer Configuration
Administrative Templates
Windows Components
Remote Desktop Services
Remote Desktop Session Host
Session Time Limits
There one can adjust the settings:
Set time limit for disconnected sessions
Terminate session when time limits are reached

Avoid prompting users to redial when PPTP connection has been disconnected

I am establishing PPTP connection to the remote server programmatically using RAS api in Windows. The problem is that when server disconnects (for example server stopped) windows automatically prompts user to redial (see screenshot), I don't want this prompt to be shown since my app handles everything by itself but couldn't find any options in RASENTRY to do so. This behavior occurs only on Windows 7, how this could be solved?
The problem was the RASEO2_ReconnectIfDropped option that I used for creating a connection. After removing it - prompt does not appear.

AWS - Managing EC2 user sessions

I have an EC2 (Windoes Server R2 2012) that is running a NodeJS process. Now, the detail is that once I get Disconnected from server (Disconnection it is supposed to keep everything on server, hence my NodeJS process) after a few minutes, the session is killed, so also the process.
I connect again and it is like I have signed out. How can I solve this? I really need to the process still running without stay ALWAYS connected to the server.
Normally Windows installation will not logoff disconnected sessions.
Your installation is probably customized for it to be logging off disconnected RDP sessions.
Load the Group Policy Object Editor and go to Computer Configuration -> Administrative Templates -> Windows Components -> Remote Desktop Services -> Remote Desktop Session Host -> Session Time Limits.
Check that the setting "Set time limit for disconnected sessions" is either Not Configured, or Enabled, but with a setting of Never.

LG TV Control through serial using Windows service runs about 30 seconds after PC is powered on - how to start the service sooner?

I have created a Windows service that turns an LG TV on/off over a USB-Serial cable when the PC powers on, resumes, or is shutdown or suspended.
The problem is that it currently takes about 30 seconds from when the PC is turned on for my service to actually start and send the appropriate command over the serial port to turn on the TV. By this time, the Windows login is already being displayed.
Is there any way to make Windows start my service sooner, say just after the USB-Serial port driver has been started? Thank you for any help!
It might be as simple as changing its name. Microsoft has a lengthy list of rules that govern what is loaded and in what order. But oddly, within a particular load group, they are loaded alphabetically of all things...
Microsoft technet social -- load documentation That's an old page but most of the rules still apply.
Get ready to tinker with the registry. Make a backup first! :)

Cancel SAS Remote server process

Using SAS 9.4, what's the best way to (or is it possible to) cancel a submitted statement that you have used rsubmit to submit to a remote server? I have tried the usual click "Break" > "Cancel Submitted Statements" but to no avail.
Thanks
You need to select the "CONNECT" options when you select your "!" button. This will give you an option to cancel remote submissions.
To the best of my knowledge, there is no straightforward way of doing what you want. The remote server session will not respond to any further input from your local session until it has finished processing. All you can do is abandon the connection or kill the remote SAS process.
If this is happening to you frequently, I suggest you focus on making your remote sessions abort at the first sign of any trouble, e.g. by setting option errorabend, or have your remote code regularly check for the presence of a 'canary' file that you can delete if you want to regain control.
To avoid having to get your server admins involved every time this happens, perhaps you could also set up a script as part of the remote server autoexec.sas file to kill all orphan processes running in your name each time you connect to a new remote session.