Page 1 of 1

PowerShell IP Scanner

Posted: 13 Feb 2020, 16:44
by hepek
Simple IP Range Scan using PowerShell

Just Edit the Scope, in this case 192.168.0.$

The Script Scanns the IP Addresses and Resolves the Hostnames if Possible.

Code: Select all

1..254 | ForEach-Object {Get-WmiObject Win32_PingStatus -Filter "Address='192.168.0.$_' and Timeout=200 and ResolveAddressNames='true' and StatusCode=0" | select ProtocolAddress*}

Re: PowerShell IP Scanner

Posted: 12 May 2020, 20:01
by ReciSvakom
Very useful, thank you for sharing.