Ping your infrastructure and send a desktop alert with Powershell

Presentation

This script runs and loads the contents of a file to recover a list of devices to ping. If the device does not respond, an alert is issued on the desktop. In addition, a log file containing the list of available perimeters is created in the C:Logs directory.

Github link : Script

Script exécution

powershell.exe -executionpolicy ByPass -file C:\Temp\PingInfra.ps1

Result

For each computer that is not available, you received a desktop alert

Alert_Ping_Infra

A log file is created to the repository C:\Logs folder


Log_Ping_Infra

Comments

Popular posts from this blog

Windows 11 security check with Powershell

How to reset computer in OOBE mode

Windows Autopilot error code 801c03ed