From 067052251a234773b69cca73103900035e994066 Mon Sep 17 00:00:00 2001 From: Markus Fleschutz Date: Thu, 19 Dec 2024 13:19:54 +0100 Subject: [PATCH] Updated wake-up-host.ps1 --- scripts/wake-up-host.ps1 | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/scripts/wake-up-host.ps1 b/scripts/wake-up-host.ps1 index 6cf92dbc..59bca4b9 100755 --- a/scripts/wake-up-host.ps1 +++ b/scripts/wake-up-host.ps1 @@ -13,8 +13,7 @@ Specifies # of times to send the packet (3 by default) .EXAMPLE PS> ./wake-up-host.ps1 11:22:33:44:55:66 192.168.100.255 - ✅ Sent magic packet 3 times to subnet 192.168.100.255, UDP port 9. - NOTE: wait a minute until the computer fully boots up. + ✅ Sent magic packet to 192.168.100.255, UDP port 9 (3x). The device is up in a minute. .LINK https://github.com/fleschutz/PowerShell .NOTES @@ -43,8 +42,7 @@ try { Send-WOL $macAddr.Trim() $ipAddr.Trim() $udpPort Start-Sleep -milliseconds 100 } - "✅ Sent magic packet $numTimes times to subnet $ipAddr, UDP port $($udpPort)." - " NOTE: wait a minute until the computer fully boots up." + "✅ Sent magic packet to $ipAddr, UDP port $($udpPort) ($($numTimes)x). The device is up in a minute." exit 0 # success } catch { "⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"