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.
psmail
#1psmail Member Posts: 1  
posted: 5/30/2019 12:00:43 AM(UTC)
WOL is supported from sleep (S3) or hibernate (S4). It is not supported from fast startup or soft off (S5) shutdown states. NICs are not armed for wake in these states because users do not expect their systems to wake up on their own.

Won't work on Win10 if there was a temporary power loss.

Active Discussions

Lansweeper Understanding current setup
by  ggarcia   Go to last post Go to first unread
Last post: Today at 12:24:42 AM(UTC)
Lansweeper Remote desktop custom port
by  sefaucher  
Go to last post Go to first unread
Last post: Yesterday at 10:30:49 PM(UTC)
Lansweeper Unable to transfer user's data prior to removal
by  RickW99456   Go to last post Go to first unread
Last post: Yesterday at 9:06:14 PM(UTC)
Lansweeper Unable to access the lansweeper consol for other computer
by  Kudnan Ingle  
Go to last post Go to first unread
Last post: Yesterday at 7:49:32 PM(UTC)
Lansweeper Closing and re-opening of tickets
by  NWHiker   Go to last post Go to first unread
Last post: Yesterday at 3:42:56 PM(UTC)
Lansweeper Wake on Lan Issues
by  woldummy  
Go to last post Go to first unread
Last post: Yesterday at 3:42:07 PM(UTC)
Lansweeper Deploy and start Software
by  EDV_OHZ   Go to last post Go to first unread
Last post: Yesterday at 12:49:08 PM(UTC)
Lansweeper Helpdek Call Re-Opened
by  mouaad  
Go to last post Go to first unread
Last post: Yesterday at 7:30:59 AM(UTC)