Quantcast
Channel: All Hamachi Discussions posts
Viewing all articles
Browse latest Browse all 7232

Re: win 10 remote desktop connection kills hamachi on client machine

$
0
0

Hello Matt,

Luckily we actually do have a workaround for this! Sadly it's only a workaround and not a fix. This happens because of the way RDP is coded. RDP essentially creates it's own environment for you to work in, so when RDP closes, it's also closing out the windows environment it created. And since you're on Hamachi free, Hamachi does not run as a service that automatically turns back on. 

The workaround we do have to workaround this issue is a .bat file that closes RDP without closing Hamachi. Please follow the instructions below to create the .bat and run it whenever you want to close RDP.


1.- Create the text file "KeepMeIn.bat" containing:
off
set /p pass=Enter password(for rdp remote pc):
for /f "tokens=3 delims= " %%a in ('qwinsta^| findstr "Act"') do set SessionID=%%a
tscon %SessionID% /dest:console /password:%pass% && Rundll32.exe User32.dll,LockWorkStation

2.- Place the file in "C:\Program Files (x86)" or equivalent
3.- Right click on "KeepMeIn.bat" --> Send to --> Desktop (Create a shortcut) or equivalent
4.- Right click over the shortcut --> Properties --> Advanced Options --> Run as administrator

Instead of using the "X" to close the session or Windows --> Disconnect , use the shortcut. It redirects the GUI to the console and keeps it open allowing Hamachi to keep connected.


Viewing all articles
Browse latest Browse all 7232

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>