PowerTip: Use PowerShell to Get IP Addresses

Doctor Scripto

Dr 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:

Get-NetIPAddress

If you like the output in a table, use:

Get-NetIPAddress | Format-Table

Doctor Scripto
Dr Scripto

Scripter, PowerShell, vbScript, BAT, CMD

Follow Dr Scripto   

0 comments

    Leave a comment