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
1
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 LSAgent has forgotten x64 Windows applications
by  thoughtmonkey   Go to last post Go to first unread
Last post: Today at 1:58:10 PM(UTC)
Lansweeper NEW TAB
by  TinyTunerz  
Go to last post Go to first unread
Last post: Today at 1:39:19 PM(UTC)
Lansweeper Force SNMP?
by  JacobH   Go to last post Go to first unread
Last post: Today at 1:11:46 PM(UTC)
Lansweeper Lsremote "No supported authentication methods!"
by  Duiker  
Go to last post Go to first unread
Last post: Today at 7:52:24 AM(UTC)
Lansweeper Scan Uptime.
by  TimAlex   Go to last post Go to first unread
Last post: Today at 7:32:41 AM(UTC)
Lansweeper Performance scanning - incorrect values
by  Richard_Lan  
Go to last post Go to first unread
Last post: Yesterday at 4:26:02 PM(UTC)
Lansweeper Windows firewall rules
by  pryan67   Go to last post Go to first unread
Last post: Yesterday at 2:56:52 PM(UTC)
Lansweeper Run outside of our domain?
by  pryan67  
Go to last post Go to first unread
Last post: Yesterday at 2:53:05 PM(UTC)