April 10th, 2014

PowerTip: Use PowerShell to Get IP Addresses

Doctor Scripto
Scripter

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:

Get-NetIPAddress

If you like the output in a table, use:

Get-NetIPAddress | Format-Table

Author

The "Scripting Guys" is a historical title passed from scripter to scripter. The current revision has morphed into our good friend Doctor Scripto who has been with us since the very beginning.

0 comments

Discussion are closed.