Find IP of machines via powershell Sep 21, 2016 • weznagwama If you need to find machines that match a certain IP, here is a script to do so: import-module activedirectory $pc = get-adcomputer -filter * $ip = read-host "What's the IP match? E.g. 10.15.201″ foreach ($x in $pc) { test-connection $x.DNSHOSTname -count 1 -ErrorAction SilentlyContinue | select @{N="Name";E={$x.DNSHostname}},IPV4Address | ? {$_.IPV4Address -like "\*$ip\*"} }