Get Assigned IP Addresses

by May 12, 2010

If you've ever wanted to know all IP addresses assigned to a machine, you should use WMI:

Get-WMIObject win32_NetworkAdapterConfiguration |
Where-Object { $_.IPEnabled -eq $true } |
Select-Object IPAddress

You can also connect to remote systems and find out their IP addresses since Get-WMIObject supports a -ComputerName and a -Credential parameter.

Twitter This Tip! ReTweet this Tip!