How can i restart tvservice from network computer (1 Viewer)

Gixxer

Retired Team Member
  • Premium Supporter
  • August 18, 2007
    1,383
    41
    41
    Spain
    Home Country
    Spain Spain
    Hi, for unknown reasons, althought tvservice starts with the computer it does not work. if i terminate it and start it again everything works perfectly.

    i wrote a bat file to restart it,

    taskkill /f /im tvservice.exe
    net start tvservice

    the problem i have to go to the server computer, kick out anyone using it, stop mediaportal, and doble click the bat.

    is there any way of doing this remotely from my laptop?

    i think taskkill allows network kill but i cant make it to work.

    thanks.

    i know web interface has this function but i am also having trouble with make web interface work. :mad:
     

    Gixxer

    Retired Team Member
  • Premium Supporter
  • August 18, 2007
    1,383
    41
    41
    Spain
    Home Country
    Spain Spain
    Have a look at psexec.exe from sysinternals. Might be what you need. Or try another one of the PsTools.

    thanks, i manage to make it work !!

    just in case anyone checks the post, i created a bat file in the server computer with this code:

    taskkill /f /im tvservice.exe
    net start tvservice

    then another bat file in my laptop with this code:

    psexec \\server -u htpcuser -p 1234 "c:\restarttvservice.bat"


    :D:D:D
     

    Gixxer

    Retired Team Member
  • Premium Supporter
  • August 18, 2007
    1,383
    41
    41
    Spain
    Home Country
    Spain Spain
    You could also use the MP Web Interface - it's mostly about EPG & managing recordings but there's also a page on it to monitor/manage the TVService & reboot options.

    MEDIAPORTAL - free MediaCenter HTPC Software - MP Web Interface

    thanks for that, but as i said in my first post i cant get web interface to work.

    i have posted to see if someone can help me about it cause web interface configuration does not connect with the database.

    thanks anyway !!:D
     

    rolfey

    Portal Pro
    January 25, 2005
    64
    0
    Ahh, I had this problem, although you can do it manually, I too used a batch file, but I found that it has to be done in the right order otherwise it doesn't all come together.

    Here is the bach file that I use, it stops the tvservice first of all, then it will reboot the client machine, then restarts the service for you, you will just have to stick in the name of the client machine and make sure you have full admin access the pc, to do this, from the media server pc from run type, \\nameoftheclient\c$
    and when prompted type in for the username nameofthepc\username then the password.

    Once this has been done the once you wont have to do it again unless you reboot the server Pc.
    Here is the script.

    cls


    @echo off

    @echo *************Revive satellite TV script*******************
    @echo *********************************************************
    @echo *********************************************************
    @echo *************Reviving satellite TV system****************

    pause

    cls

    taskkill /im TVService.exe /f /t
    @echo The Tvservice has been stopped

    pause

    shutdown -m \\mediapc -f -r -t 00

    net start tvservice
    @echo The TV service has been started
    pause


    @echo Once the media Pc has rebooted you should be ok
    @echo Press any key to exit

    pause

    exit





    good luck
     

    Users who are viewing this thread

    Top Bottom