Simple question, I think.. I have some IP addresses stored as objects in an array (these come from WMI queries) but when I attempt to write them out I just get blanks; Some examples below, Can I output the array value without having to save to a string variable?
Array $IP, contains to object's that are the IP addresses obtained from a WMI query
I attempt to write out the value, say with write-host "IPs are $IP and $IP" and I get blanks. I have also tried the var outside the quotes and appending $IP.ToString(), but still not getting anything to display.