PowerShell PowerShell Get-Content 'C:\ips.txt' | Sort-Object | Group-Object | % { $ip=$_.name #Add more IP #Example 66. if($ip -contains "66.") { $ip, [System.Net.Dns]::GetHostbyAddress($_).HostName } else { $ip } } 12345678910111213 Get-Content 'C:\ips.txt' | Sort-Object | Group-Object | % {$ip=$_.name#Add more IP#Example 66.if($ip -contains "66."){$ip, [System.Net.Dns]::GetHostbyAddress($_).HostName}else{$ip}}