Skip navigation
Find specific IP addresses using PowerShell on a machine

Find specific IP addresses using PowerShell on a machine

Q. How can I get a specific IP address on my machine with PowerShell?

A. If you have multiple IP addresses on a machine and know part of an IP address, for example a subnet you can easily get detail about the IP with the following:

Get-NetIPAddress | where {$_.IPAddress -like "10.7*"} | ft IPAddress, InterfaceAlias, InterfaceIndex -AutoSize

Hide comments

Comments

  • Allowed HTML tags: <em> <strong> <blockquote> <br> <p>

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.
Publish