Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

When I connect to my media PC using LogMeIn Free, Windows 7 Media Center shuts down because it doesn't work over a remote desktop connection. This isn't too much of a problem for me as it's the same with Microsoft's Remote Desktop.

In order to get around this limitation with Microsoft's Remote Desktop, I use the following batch file to kill RDP (Remote Desktop Protocol), wait a moment and then re-start Windows Media Center:

tscon RDP-Tcp#0 /dest:console
ping -n 5 localhost > NUL
RunDLL32.exe C:\Windows\ehome\ehuihlp.dll,BootMediaCenter

The problem is that it doesn't work with LogMeIn Free as the session isn't killed/disconnected. Of course I could just run it and then close the window very fast, but that isn't ideal.

Is there a line I can add into this batch file which will also kill LogMeIn Free if it is connected?

share|improve this question
I love the use of ping > NUL. +1 – RJFalconer Nov 5 '10 at 21:04
Does "kill the logmein exe" meet the requirement of "kill if connected"? Or is it specifically iff you're connected? There's a number of command line apps that can just kill a specified exe if run with sufficient privilages. – RJFalconer Nov 5 '10 at 21:05
I suppose I could kill the exe, wait 5 seconds and then restart it again - it just seems a little nasty. – Richard Nov 5 '10 at 21:53
up vote 2 down vote accepted

So you just want to kill any existing Logmein sessions from command line?

logmein.exe restart 

Looks like it restarts the logmein service. I imagine this would have the desired effect.


share|improve this answer
Good find. If that doesn't work, you could stop the service, run the ping to wait 5 seconds and then start it again. – Richard Nov 9 '10 at 15:01

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.