Hostname zu IP Adresse ausgeben
$ipaddress=Get-Content -Path C:\Temp\input.txt
$results = @()
ForEach ($i in $ipaddress)
{
$o=new-object psobject
$o | Add-Member -MemberType NoteProperty -Name hostname -Value ([System.Net.Dns]::GetHostByAddress($i).HostName)
$results +=$o
}
$results | Select-Object -Property hostname | Export-Csv C:\temp\output.csv