I tried that, but it just brings up a command prompt, then goes back to the desktop. I am trying to use hamachi to play on a server created by my friend on unturned. (a video game on steam) It has been working fine until today.
I realize this is old, but this helped me.
This should cover everyone, even servers I believe. The number corresponds to the RDP session. 0=console and 1+2=other sessions. Depending on how you connect to your computer determines which session you use so running all 3 should work to disconnect everyone.
Last line if optional if you want to lock screen.
Paste all of this into bat file then run when you want to disconnect from RDP
tscon 0 /dest:console
tscon 1 /dest:console
tscon 2 /dest:console
Rundll32.exe User32.dll,LockWorkStation
...fantastic...worked great for me (w7)!!
cheers!
rammy
This solution doesn't work to me.
First it's all fine, disconect and kepp online, but after conect more time, the command is failed.
Cmd show me message like access denied, or not founded sessions.
I tried execute it as Administrator, I tried put the rdp session, but don't work to me.
If I reboot the server, it's fine a few time, but after a couple of days fail again.
Have you any another idea to resolve it?
Thanks.
Muchas gracias por tu respuesta me a servido de mucho, aparte de tenerlo en varias computadoras tengo una web que habrá de hamachi , https://descargarhamachi.site/
hghg