Jump to content

Recommended Posts

Posted

I'm currently testing this on a machine.

 

I've downloaded a WOL.exe, (dont know if there is a best place to get one or if they are all the same?) placed it in C: have created a bat containing C:\wol.exe XX:XX:XX:XX:XX:XX.

 

I tried running it knowing full well it wouldnt run first time, i then checked the bios to find wake on lan off so sorted that...

 

Have tried running it again, but still not booting up.

 

Am i missing something?

Posted

Are the colons valid in the MAC address (i.e. which WOL.EXE are you using)?

 

Does the source machine have a firewall?

 

Is the target on the same subnet?

 

mb

  • Thanks 1
Posted

I dump the contents of my DHCP log into a spread sheet, tidy it up and then:

 

wol 0024219ac5ee

wol 0024219ac5a8

wol 001109189dc3

 

...you get the picture.

 

Also make sure you have set the right settings on the NICs of the PCs you are trying to wake up [ allow magic packet and pattern match ]

  • Thanks 1
Posted

WOL needs the mac address without the colons.

 

I have a spreadsheet of macs and then use the following function to built the batch file;

=CONCATENATE("wol ",REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(B55,3,1,""),5,1,""),7,1,""),9,1,""),11,1,""))

 

In this instance the original Mac address is in cell B55.

 

You can also use find and replace to get rid of the colons.

  • Thanks 1
Posted
oooh!! it worked!! Might have been the removal of the colons but im unsure! Will test on another machine. I only know cus ive just realised someone has logged into the machine that ive been trying to wake!! lol
Posted
oooh!! it worked!! Might have been the removal of the colons but im unsure! Will test on another machine. I only know cus ive just realised someone has logged into the machine that ive been trying to wake!! lol

 

I found you need to remove the colons,

 

Oh and you might want to have a look at this for harvesting your Mac address lists.

  • Thanks 2
Posted
is there a way of making the BAT a bit easier to read. Can i include the names of the machines without breaking the file?

 

You can REM them out:

 

REM PC001

wol 0024219ac5ee

REM PC002

wol 0024219ac5a8

REM PC003

wol 001109189dc3

 

You get the idea....

  • Thanks 1
Posted
is there a way of making the BAT a bit easier to read. Can i include the names of the machines without breaking the file?

 

In the past, I've also seperated the rooms out into a number of bat files so you can isolate each room individually. I found it made it easier to troubleshoot if 1 machine started giving me problems as you already knew which room it was before looking any further.

  • Thanks 1
Posted

lol me again!

 

So do i lay it out like this...

 

C:\wol.exe xxxxxxxxxxxx

xxxxxxxxxxxx

xxxxxxxxxxxx

 

or

 

C:\wol.exe xxxxxxxxxxxx

C:\wol.exe xxxxxxxxxxxx

C:\wol.exe xxxxxxxxxxxx

C:\wol.exe xxxxxxxxxxxx

Posted
lol me again!

 

So do i lay it out like this...

 

C:\wol.exe xxxxxxxxxxxx

xxxxxxxxxxxx

xxxxxxxxxxxx

 

or

 

C:\wol.exe xxxxxxxxxxxx

C:\wol.exe xxxxxxxxxxxx

C:\wol.exe xxxxxxxxxxxx

C:\wol.exe xxxxxxxxxxxx

 

Second one, or put wol.exe in the same folder as the batch file and just do wol.exe xxxxxxxxxxxx or even wol xxxxxxxxxxxx

 

It doesn't however work if the batch file is on a network share.

  • Thanks 1
Posted

The second one, a bach file is just a list of command prompt commands, in this case wol.exe with the argument of the MAC you want to wake. Each new line is a new command hence you need to run wol.exe each time as the pc will just look at you funny

'ffffffff' is not recognized as an internal or external command,

operable program or batch file.

if you type a mac address into the command prompt without telling it what to do with it :D
  • Thanks 1

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...