mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-08-09 05:04:39 +02:00
Improved the scripts
This commit is contained in:
@ -32,7 +32,7 @@ try {
|
||||
start-sleep -milliseconds 100
|
||||
Send-WOL $MACaddress $IPaddress
|
||||
|
||||
write-output "OK - magic packet sent twice to IP $IPaddress (MAC $MACaddress)"
|
||||
write-host -foregroundColor green "Done - magic packet sent twice to IP $IPaddress (MAC $MACaddress)"
|
||||
exit 0
|
||||
} catch {
|
||||
write-error "ERROR in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
||||
|
Reference in New Issue
Block a user