I needed to quickly get the IP addresses of about 100 servers from their names. I pasted all the servers into a text file, one per line, and ran the following loop:

$servers = Get-Content .\serverList.txt
$ping = New-Object System.Net.NetworkInformation.Ping

foreach($s in $servers)

This loop outputs a comma delimited list of ServerName,IP to the window like this:


I pasted the list into a new email in Outlook, highlighted it, and then used the Convert Text to Table feature in Word (and Outlook):

image SNAGHTML3dbfa3a2[4]

Word turned my pasted CSV list into a nice table and I sent it off.