top of page

PowerShell - Get subnet response times

  • Writer: Jon Boyette
    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


 
 
 

Recent Posts

See All
PowerShell - List All Domain SPNs

Save as same List_ALL_SPNs.ps1 or similar, this LDap calls the Domain for all Service Principal names and accounts related #Build LDAP...

 
 
 
PowerShell - Start-Monitoring

This is a great script used to Monitor and Email if a server is up or down, once ran, and smtp and from address is set, then run:...

 
 
 

Comments


Post: Blog2 Post
  • Facebook
  • Twitter
  • LinkedIn

©2022 by Boyette Technical Services. Proudly created with Wix.com

bottom of page