Shutdown another PC?
#1
Hi there,

there are a few WOL solutions available but I'm looking for the opposite: shutdown another Windows PC with XBMC.

Any idea?
Reply
#2
The method I went for was to write a batch file to handle the remote shutdown, then made this batch file into a .exe file using some freeware (name escapes me off the top of my head). Then I used the advanced launcher add on to run the new .exe file. The advanced launcher command can then be set as a favourite and depending on your choice of skin added to the homepage.

One tip before you start, make sure you have remote shutdown working before you try to build it into xbmc.
Reply
#3
Hi there,

thanks for the response. I ended up writing an XBMC addon which opens a telnet session to my target PC and shutdown/restart/hibernate the system. Was a funny exercise considering I don't have any knowledge about Python.

But it seems to work.
Reply
#4
Glad you found a solution.
Reply
#5
Would you be willing to share this addon? I've been looking for this as well.
Reply
#6
Also looking for this. Telnet into my unraid server to shut it down from xbmc would be great.
Reply
#7
Well, here's my addon.
https://dl.dropbox.com/u/1304592/script....-pc_05.zip

Actually, I did not do any further development but it works for me from Windows 7 to Windows 7 under Eden and Frodo.
So don't expect any documentation but config should be almost self-explaining. Wink
Kodi 17.x running on Nvidia Shield, 1x KODIbuntu
mySQL hosted on WHS 2011
Reply
#8
Hi, thanks for the add-on!

I had some troubles from being a noob. So other people can learn from my mistake:

1. If you have 3 PC's and one keyboard and monitor, for god's sake, make sure you are ping the computer you want! I spent like 20 minutes until I realized I was working with the wrong computer.
2. Install telnet server on the server and telnet client on the client.
3. Add telnet user via lusrmgr.msc on server

Profit!

Now you can go to XBMC > Programs and execute the script.

My only question at this point... Do you know what the XML line is to execute? That way I can put the command on the main page where I have my shutdown options.
Reply
#9
No idea. I put it to my favorites, so I can access it quite easily from the overall shutdown menu (pressing S on the keyboard or remote).
Kodi 17.x running on Nvidia Shield, 1x KODIbuntu
mySQL hosted on WHS 2011
Reply
#10
I'm finally learning a little...

Put this in your XML's and and it'll call the script:

<onclick>RunScript(script.telnet-shutdown.windows-pc)</onclick>
Reply
#11
Thanks, interesting finding.
Kodi 17.x running on Nvidia Shield, 1x KODIbuntu
mySQL hosted on WHS 2011
Reply
#12
You can use this DOS command Not familiar enough with XBMC at the moment to know how to issue a DOS command.

> shutdown /s /m \\COMPUTERNAME

If you want to reboot the computer use /r instead of /s
Reply

Logout Mark Read Team Forum Stats Members Help
Shutdown another PC?0