ethernet
How-To Microsoft Powershell

Simple IP Range Scan using PowerShell

A quick PowerShell script to perform an IP scan and attempt to resolve hostnames.

1..254 | ForEach-Object {Get-WmiObject Win32_PingStatus -Filter "Address='192.168.0.$_' and Timeout=200 and ResolveAddressNames='true' and StatusCode=0" | select ProtocolAddress*}
Travis Wade
Travis Wade
Just a normal human being living the dream. I'm an IT professional in the Healthcare space with a love and passion for cloud computing and highly redundant infrastructure.
https://www.travisnwade.com/

Leave a Reply

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