PowerShell - Get subnet response times
- Jon Boyette
- Apr 15, 2022
- 1 min read
Save as a named .ps1, this script is a great tool to determine if an entire 255 range subnet has "lagging" connections, it will identify live IP addresses and give the response times in order to assist troubleshooting slow connections and if ISP or network/VPN as a whole are the reasoning factors
1..254| ForEach-Object -Process {
Get-CimInstance -Class Win32_PingStatus -Filter ("Address='10.10.242.$_'") } |
Select-Object -Property Address,ResponseTime,StatusCode | Export-Csv c:\temp\SubnetResponseTimes.csv -NoTypeInformation
Comments