1 2 3 4 | $ip='90.0.0.0' $result=(Resolve-DnsName $ip).NameHost if($result -match 'static'){$ip + ' static'} else{$result + ' no static'} |
1 2 3 4 | $ip='90.0.0.0' $result=(Resolve-DnsName $ip).NameHost if($result -match 'static'){$ip + ' static'} else{$result + ' no static'} |