home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 1
MediaPortal 1 Plugins
Wake On Lan plugin
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="joz" data-source="post: 376416" data-attributes="member: 70244"><p>[USER=64874]davidegee[/USER]:</p><p>here you go;</p><p></p><p>first of lets start with the batch script</p><p>[CODE]echo off</p><p>"C:\Program Files\MediaPortal\PowerOff\poweroff.exe" wol -ip 192.168.x.x -subnet 255.255.255.0 -mac SOMEMACADDRESS</p><p>"C:\Program Files\MediaPortal\PowerOff\poweroff.exe" shutdown -warn -warntime 10 -msg "Server shutting down" -username PCNAME/USERNAME -password xxx -remote 192.168.x.x -quiet[/CODE]</p><p></p><p>A couple of things to explain here;</p><p>* This script expects you have poweroff installed within the Mediaportal directory see the bit;</p><p>"C:\Program Files\MediaPortal\PowerOff\poweroff.exe"</p><p>* This script does two things in chronological order;</p><p>1) Throw out a magic packet to WOL the remote PC in question</p><p>2) Call the shutdown function on the remote PC. This is kinda ignored when WOL'ing the PC, at least for me. WOL'ing takes some time and b that time the batch script should be finished.</p><p></p><p>To have this script work you need to install poweroff on the remote machine as a service. Configure it's password.</p><p>Next you need poweroff on the machine calling the remote shutown/wakeup and change all relevant fields in the batch script.</p><p></p><p>To create a button within MP use multishortcut and point it to the batch file you have created, enjoy!</p></blockquote><p></p>
[QUOTE="joz, post: 376416, member: 70244"] [USER=64874]davidegee[/USER]: here you go; first of lets start with the batch script [CODE]echo off "C:\Program Files\MediaPortal\PowerOff\poweroff.exe" wol -ip 192.168.x.x -subnet 255.255.255.0 -mac SOMEMACADDRESS "C:\Program Files\MediaPortal\PowerOff\poweroff.exe" shutdown -warn -warntime 10 -msg "Server shutting down" -username PCNAME/USERNAME -password xxx -remote 192.168.x.x -quiet[/CODE] A couple of things to explain here; * This script expects you have poweroff installed within the Mediaportal directory see the bit; "C:\Program Files\MediaPortal\PowerOff\poweroff.exe" * This script does two things in chronological order; 1) Throw out a magic packet to WOL the remote PC in question 2) Call the shutdown function on the remote PC. This is kinda ignored when WOL'ing the PC, at least for me. WOL'ing takes some time and b that time the batch script should be finished. To have this script work you need to install poweroff on the remote machine as a service. Configure it's password. Next you need poweroff on the machine calling the remote shutown/wakeup and change all relevant fields in the batch script. To create a button within MP use multishortcut and point it to the batch file you have created, enjoy! [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
MediaPortal 1 Plugins
Wake On Lan plugin
Contact us
RSS
Top
Bottom