Skip to main content
Expanded my answer to be clearer about which machine to run the command on
Source Link
Fran
  • 5.5k
  • 25
  • 27

Terminating the shell (i.e., Explorer or something else) doesn't log you out. Your login session over RDP is more than just your shell. Try this command in a Command Prompt window on the machine you want to logout from (i.e., the machine you have RDP'ed into):

C:\windows\system32\shutdown.exe /L

It should log you out without shutting down the machine.

Terminating the shell (i.e., Explorer or something else) doesn't log you out. Your login session over RDP is more than just your shell. Try this command in a Command Prompt window:

C:\windows\system32\shutdown.exe /L

It should log you out without shutting down the machine.

Terminating the shell (i.e., Explorer or something else) doesn't log you out. Your login session over RDP is more than just your shell. Try this command in a Command Prompt window on the machine you want to logout from (i.e., the machine you have RDP'ed into):

C:\windows\system32\shutdown.exe /L

It should log you out without shutting down the machine.

Source Link
Fran
  • 5.5k
  • 25
  • 27

Terminating the shell (i.e., Explorer or something else) doesn't log you out. Your login session over RDP is more than just your shell. Try this command in a Command Prompt window:

C:\windows\system32\shutdown.exe /L

It should log you out without shutting down the machine.