Simple outputting Array object??

by Jun 13, 2014

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[0] and $IP[1]"  and I get blanks.  I have also tried the var outside the quotes and appending $IP[0].ToString(), but still not getting anything to display.