A few weeks ago, I co-worker asked for a script to ping a list of computer names. I thought I had one on my blog, but couldn’t find it. I decided to post a copy here to make it easier to find in the future. This is very simple, and doesn’t do any sort of multithreading, but for a short list it will get the job done pretty quick:


$ping = New-Object system.net.networkinformation.ping
Get-Content someComputerList.txt | %{
     try {$results = $ping.Send($_).Status } catch { $results = $false }
     New-Object psobject -Property @{ Name=$_ ; Results=$results }
}

Leave a Reply

Your email address will not be published. Required fields are marked *

© 2026 Enterprise Admins.org. Design inspired by the Clarity Design System. Not affiliated with or endorsed by Broadcom or VMware.