1 2 3 4 5 | gc D:\ips.txt | %{ $result=(Resolve-DnsName $_).NameHost if($result -match 'static'){$_ + ' static'} else{$result + ' no static'} } |
1 2 3 4 5 | gc D:\ips.txt | %{ $result=(Resolve-DnsName $_).NameHost if($result -match 'static'){$_ + ' static'} else{$result + ' no static'} } |