$arp = arp -a | Where {$_ -and $_ -notmatch ‘internet address\s+physical address\s+type’}
What i dont get here is the "$_ -and $_ " part.
i get that this gets the output of arp -a and then brings back everything except the phrase in the regex.
i know the $_ is the piped data but i still dont understand that condition, help?
Thanks for the fast response i think ill implement it your way since it is more informative, can i use the PSItem instead of the $_? or it may cause some compatibility issues with other PS vers?