new to this board, saw on techED about this site. here is a small script i use to look up IP to DNS names:
$Computerlist = get-content "./IPcomplist.txt" foreach ($i in $Computerlist){ $rs = [System.Net.Dns]::GetHostbyAddress($i).HostName #FQDN driven #$rsIP = [System.Net.Dns]::GetHostAddresses($i)|select-object IPAddressToString -expandproperty IPAddressToString $formatoutput = ($i + "," + $rs) write-output $formatoutput |out-file Report_IP_FQDN.txt -append } $i=0 write-output "script has finished running"
-Nexghost