Quantcast
Channel: Hey, Scripting Guy! Blog
Viewing all articles
Browse latest Browse all 3333

PowerTip: Document Server's IP Addresses by Using PowerShell

$
0
0

Summary: Use Windows PowerShell to document the IP addresses on a server.

Hey, Scripting Guy! Question How can I use Windows PowerShell to easily go through my server environment and
          document the IP addresses in use on each machine?

Hey, Scripting Guy! Answer We can do this with a wee bit o' magic from the new Get-NetIPConfiguration cmdlet
          in Windows Server 2012 R2:

Get-NetIPConfiguration | Select-object InterfaceDescription -ExpandProperty AllIPAddresses

If you'd like to save it in a file, use the Export-CSV cmdlet:

Get-NetIPConfiguration | Select-object InterfaceDescription -ExpandProperty AllIPAddresses |
Export-CSV IPConfig.csv


Viewing all articles
Browse latest Browse all 3333

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>