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 Questions about Emailing Reports
by  fjca   Go to last post Go to first unread
Last post: Today at 1:35:57 AM(UTC)
Lansweeper Software Deployment packages to Windows 10 machines Fail
by  jblamire   Go to last post Go to first unread
Last post: 2/15/2019 8:01:37 PM(UTC)
Lansweeper Change user who entered time worked
by  sbAYVdQu  
Go to last post Go to first unread
Last post: 2/15/2019 7:33:01 PM(UTC)
Lansweeper Installing Lansweeper on Windows Core Server
by  AZHockeyNut   Go to last post Go to first unread
Last post: 2/15/2019 6:13:15 PM(UTC)
Lansweeper Sonos not detected
by  Vic T.   Go to last post Go to first unread
Last post: 2/15/2019 2:03:26 PM(UTC)
Lansweeper Lansweeper Ignoring Exclusions after 6.x to 7.Upgrade
by  Vic T.  
Go to last post Go to first unread
Last post: 2/15/2019 1:52:05 PM(UTC)