The script is monitoring the network?

Hello! once I confess I'm not a programmer but I have! :)
The essence of what you need the script to monitor 3 4 and host in case of unavailability of all, brings to the screen the large red brick with the words plug wire back Gad.
Maybe someone have something similar?
Thank you!
It can be any language, preferably with a loop, well it is.
March 12th 20 at 08:43
1 answer
March 12th 20 at 08:45
Warning, the following script is written for a joke, but it does what you want :D
Open powershell and run:
for ($true) {sleep 20; if (!(Test-Connection 'comp1' -Quiet -Count 1) -and !(Test-Connection 'comp2' -Quiet -Count 1)) {sc ($env:TEMP+'\warning.txt') -Value 'Wake up, Neo. You obosralsya';start 'notepad' -argumentlist ($env:

Find more questions by tags Computer networksPowerShell