Hello,
I have an array and I would like to keep looping through it until all values contained in the array are true, but i am unsure how to construct this.
this is what i have
$AllISCSIConnected = $false #loop through the targets until they are all giving a status of IsConnected = true $IsConnectedArray = Get-IscsiTarget | Select -ExpandProperty IsConnected
the $IsConnectedArray will contain a mix of True and False, I would like it to sleep for a while, set the array to null, then re-populate it with the latest values and re-evaluate. when all values are True then set the $AllISCSIConnected variable to true to leave the loop (if that helps, unless there is another way?)
thanks
Steve