Shutting down MP remotely? (1 Viewer)

clobber

Portal Pro
January 12, 2008
190
4
Hey,

Is there a way to stop Mediaportal remotely? I have it running on my HTPC in full screen mode and often need to RDP in to the machine for maintenance. Right now, I have to just kill the Mediaportal process after logging in (or via pstools). Just wondering if there is a better less harmful way.

thanks!
 

Jay_UK

Test Group
  • Team MediaPortal
  • October 6, 2009
    1,780
    283
    Derby
    Home Country
    United Kingdom United Kingdom
    Hi there,

    If you RDP, you should still be able to Alt-F4 it.

    I would not recommend killing the MePo client process, as this could corrupt some of the DB's if they are being written to at that time.

    Thanks,

    J.
     

    rekenaar

    Retired Team Member
  • Premium Supporter
  • December 17, 2006
    4,421
    805
    Home Country
    South Africa South Africa
    If you RDP, you should still be able to Alt-F4 it.

    I don't think that will work since MP is not visibla/active on the RDP session. Alt-F4 will only close active window/program.

    I hear what you say about killing the process, and it makes sense, but if I look at the official restart.vbs in MP programs directory, it is also just killing the task.

    So from looking at the code of restart.vbs, you can create a shortcut to kill MP.

    if you have tskill.exe somewhere on your system, create a shortcut that will do this:
    Code:
    tskill Mediaportal

    if not, create it as follow:
    Code:
    taskkill /F /IM MediaPortal.exe
     

    rekenaar

    Retired Team Member
  • Premium Supporter
  • December 17, 2006
    4,421
    805
    Home Country
    South Africa South Africa
    I just re-read the posts and realized that I am using the fix for concurrent rdp sessions, so my answer rather apply to that.

    If you use it, your HTPC will continue to run in fullscreen, while your rdp session, using same user, can fully function on it's own.

    google the following
    windows 7 concurrent remote desktop

    :)
     

    clobber

    Portal Pro
    January 12, 2008
    190
    4
    Thanks for all the replies.

    Yeah, I'm familiar with the concurrent RDP hack, but have always been hesitant to use it. I hate to replace the term services with some random dll from the Internet, even though they claim it is just from an earlier release. Also, then I dont think you can RDP in as the actual user that my HTPC normal runs as. It is certainly something I will re-consider.

    I think rekenaar is right, MP is not active through the RDP session so I'm not sure Alt-F4 will work.

    Yep, right now I am using taskkill from a remote machine. I also found a program called Remote Process Explorer which lets you view and kill process via a GUI.

    As Jay_UK said, I thought I read a while back that killing the MP proc could corrupt a DB. Is that a reality?

    I know I'm suggesting the world, but ultimately what would be *awesome* is if MP would transition the configuration GUI to a web based alternative. Since I assume most people are running the HTPC on dedicated hardware, it sure would make things easier. Just bring up a web page, tell it to stop MP, then configure all the options, and restart. I'm really big on programs with web gui interfaces so that I can run them on my HTPC with minimal problems.

    thanks,
     

    Jay_UK

    Test Group
  • Team MediaPortal
  • October 6, 2009
    1,780
    283
    Derby
    Home Country
    United Kingdom United Kingdom
    Hi there,

    RDP with MePo running does work.

    I use it all the time. You can navigate around MePo (the only things that don't work are watching/listening to content - as you expect the FPS is terrible!

    I am running W7 client to W7 HTPC (no RDP hack)

    J.

    ps - Just because restart.vbs does it, doesn't mean its a good solution ;)
     

    Toddi

    MP Donator
  • Premium Supporter
  • December 29, 2008
    54
    18
    Kiel
    Home Country
    Germany Germany
    AW: Shutting down MP remotely?

    Maybe another solution can be a small autoit-script like:

    WinClose ("MediaPortal")
    WinWaitClose ("MediaPortal", "", 10)

    With psexec you can run it from a remote computer at the mp-machine
    Just an idea:)
     

    clarkey2r

    Portal Pro
    February 9, 2009
    215
    3
    Home Country
    United Kingdom United Kingdom
    Or pskill.exe from the remote pc your 'jumping' from? Works a treat for me!
     

    clobber

    Portal Pro
    January 12, 2008
    190
    4
    Yep, all these solutions do seem to work for killing mepo, but it seems like there could be a better, more gentile solution.

    thanks!
     

    Users who are viewing this thread

    Top Bottom