Notification

Icon
Error

Powershell script for WOL on VLAN

Posted: Thursday, November 1, 2018 4:15:02 PM(UTC)
HKLM_

HKLM_

Member Original PosterPosts: 1
0
Like
Recently I had the issue that my lance server is in a different plane than my clients.

Because you can not send wol request over different vlans, the built-in action of lansweeper does not work.

However, it is possible to use the supplied wol.exe tool of lansweeper in cmd or powershell.

This can be found on your c $ \ Program Files (x86) \ Lansweeper \ Actions

It is very simple script but it works for us.

Code:

POWERSHELL
$mac = Read-Host -Prompt "Enter your MAC address and hit return"
c:\temp\WOL\wol.exe $mac

pause


I then converted it to an .exe with PS2EXE and placed it in Lansweeper under advanced actions.
The only drawback is that you have to copy the mac address yourself.

Active Discussions

Lansweeper Ubiquiti Unifi OID and MIB files
by  crashff   Go to last post Go to first unread
Last post: 9/24/2018 8:14:31 PM(UTC)
Lansweeper C2960X switch
by  Hendrik.VE  
Go to last post Go to first unread
Last post: 9/18/2018 1:55:45 PM(UTC)
Lansweeper Getting started with custom OID scanning and sharing
by  Charles.X   Go to last post Go to first unread
Last post: 8/23/2018 2:34:13 PM(UTC)