Mc-wol Download

0 views
Skip to first unread message

Ling Kliment

unread,
Aug 4, 2024, 6:35:06 PM8/4/24
to specheadtiho
Ive got a problem trying to wake a machine with SCCM 2012 WOL. WOL is enabled on the site and on the mandatory advertisement of an automatic deployment rule which deploys a software update package. However, when the deadline is reached, the machine doesn't wake up and therefore doesn't install the updates. I can power up the machine with SCCM right click tools from the console and using mc-wol.exe from the command line. I believe right click tools uses mc-wol or something similar. mc-wol is sending the magic packet using port 9. I am using unicast broadcasts and don't believe there are any arp cache issues, as it works from the command line.

My home theater PC is set to automatically enter a low-power sleep mode after 25 minutes of inactivity. This works well with Vista's Media Center, which wakes the machine up when it's scheduled to record. This way I can avoid the additional electricity cost of a computer turned on around the clock. My HTPC doesn't use that much power, but even at a miserly 60 watts idle, that still works out to about $80 per year here.This arrangement works out fine most of the time. I don't mind waking the machine manually when I want to watch television-- after all, I'm in the same room and I'm walking towards the couch anyway. It's on the way. But a sleeping PC can be incredibly annoying when I'm sitting at my desk and I need to access that machine remotely. I use my HTPC as my digital media file server, so I often need to transfer files back and forth. But now I can't, because the machine is often asleep. Zzzzz. I desperately need it to WAKE UP. This always reminds me of ToeJam & Earl on the Sega Genesis. If you left the controller alone for a minute, your character would fall alseep.You had to frantically bash all the controller buttons to wake your character up, which he did only reluctantly. Unfortunately, mashing all the buttons on my keyboard didn't seem to work. What I need is a way to remotely wake a sleeping computer.Fortunately, one already exists: it's called Wake-on-LAN. Most modern motherboards have integrated ethernet ports that support Wake-on-LAN. Here's how to tell if yours does: put your computer to sleep, then take a look at the ethernet port and see if the transmit and receive LEDs are still blinking. If they are, it's likely you can use Wake-on-LAN. That was true in my case, so I figured it should work.I downloaded a few Wake-on-LAN tools, but the one I liked most was Vitaly Evseenko's small, free command-line utility, mc-wol.exe. These utilities send a specially crafted "magic ethernet packet" to the target PC which initiates the wake-up sequence. Note that you have to identify the target PC by MAC address, not IP address. I checked my router's DHCP tables, which included the following MAC entry for my HTPC:00:01:80:5c:d3:24Armed with that information, I gave it a shot. But nothing happened. Zzzzz. Darn! I checked the PC's BIOS settings, but there was nothing relevant. And then I remembered the properties page for the network adapter in Device Manager:Bingo. It's in two different places under Device Manager, Network Adapters, Properties:Advanced tab, Wake from Shutdown property, Value = OnPower Management tab, Allow this device to wake the computer, checkI'm not sure which one is the "right" one to set. I set both just to be sure. Once did, I was able to wake up the machine remotely exactly as desired:C:UsersJeffDesktoptest>mc-wol 00:01:80:5c:d3:24WakeOnLAN v1.0 Copyright (c)2001, MATCODE Software.Web: : Vitaly Evseenko, v...@matcode.comSending "Magic Packet" to 00:01:80:5c:d3:24 - Success!C:UsersJeffDesktoptest>ping mcePinging mce [192.168.0.110] with 32 bytes of data:Reply from 192.168.0.110: bytes=32 time


Hi there. The past week I've been toying with creating a startup and a shutdown script for my unRAID server. The holy grail to switch both on and off my server via two scripts was what I wanted. This makes like easy for those who need to use your unRAID server, to be able to power it on and off without any intervention, or getting an inexperienced person to log on unRAID web gui, shutting down, etc... The 'startup' script works assuming WOL works fine for your server. Below is the 'startup' script, which you simply copy the text, paste into a blank Notepad session, edit according to your setup and save as a 'start_unraid.bat'. For WOL, I use "mc-wol.exe", which is a free download and can easily be Googled, but feel free to use any DOS-based WOL utility if you like.


Below is a VB Script, with all thanks and credits going to "StevenD" and "barrettj" for creating, amending and assisting me with it. Simply copy the text, paste into a blank Notepad session, edit according to your setup and save as a 'stutdown_unraid.vbs':


Just copy the startup and shutdown scripts to your PC, create shortcuts to them to your desktop and change the icon to something distinguishable, if you like. You could even set these as part of your startup/shutdown scripts to be excuted when your media PC Starts up/Shutdown, so no intervention what so ever is required, and your Media PC and server will be up and running by only turning on just the media PC.

3a8082e126
Reply all
Reply to author
Forward
0 new messages