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 How to modify scan schedule for multiple scanning targets?
by  aturkovich   Go to last post Go to first unread
Last post: Yesterday at 3:46:04 PM(UTC)
Lansweeper Changing/Editing tblComputerSystem.DomainRole
by  Esben.D  
Go to last post Go to first unread
Last post: Yesterday at 2:41:17 PM(UTC)
Lansweeper Version Check Page
by  Esben.D   Go to last post Go to first unread
Last post: Yesterday at 2:37:43 PM(UTC)
Lansweeper warranty information missing
by  Esben.D  
Go to last post Go to first unread
Last post: Yesterday at 2:33:03 PM(UTC)
Lansweeper Dell Switch Servicetag
by  Esben.D   Go to last post Go to first unread
Last post: Yesterday at 2:12:22 PM(UTC)
Lansweeper Office 365 ProPlus not detected in a few PCs
by  Esben.D  
Go to last post Go to first unread
Last post: Yesterday at 2:10:44 PM(UTC)
Lansweeper Imageright Installation
by  CyberCitizen   Go to last post Go to first unread
Last post: Yesterday at 1:01:30 AM(UTC)
Lansweeper Is the conditional step for OS arch broken?
by  CyberCitizen  
Go to last post Go to first unread
Last post: Yesterday at 1:00:54 AM(UTC)