I have the following:
for ($i=0; $i -lt $maxnum) {
$something = (get-wmiobject win32_diskpartition)[$i] |%{$_.StartingOffset}
i++
}
What I would like to do is have the $something actually be $offset$i, where if you called the variable "$offset1" or "offset2" you would get the associated value. I think I have to concatenate and cast but I'm not sure about the syntax.