PowerTip: Use PowerShell to Get IP Addresses

Doctor Scripto

Summary: Use Windows PowerShell to retrieve IP addresses.

Hey, Scripting Guy! Question Is there a way to use Windows PowerShell to check IP addresses without use IPconfig?

Hey, Scripting Guy! Answer In Windows Server 2012 R2, use the new Get-NetIPAddress cmdlet:


If you like the output in a table, use:

Get-NetIPAddress | Format-Table


Discussion is closed.

Feedback usabilla icon