Get Assigned IP Addresses

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!


Posted May 12 2010, 08:00 AM by ps1

Comments

Twitter Trackbacks for Get Assigned IP Addresses - Power Tips - PowerShell.com [powershell.com] on Topsy.com wrote Twitter Trackbacks for Get Assigned IP Addresses - Power Tips - PowerShell.com [powershell.com] on Topsy.com
on 05-12-2010 9:52 AM

Pingback from  Twitter Trackbacks for                 Get Assigned IP Addresses - Power Tips - PowerShell.com         [powershell.com]        on Topsy.com

Concentrated Tech NSoftware Dell Compellent Sponsored by Idera and Concentrated Tech and NSoftware and Dell Compellent
Copyright 2011 PowerShell.com. All rights reserved.