The Select-Object cmdlet is probably what you want. It has -First, -Last, -Skip, -Index, etc which you can use to step in to an array
Thanks, Brian Desmond [email protected] c - 312.731.3132 > -----Original Message----- > From: Joseph L. Casale [mailto:[email protected]] > Sent: Friday, March 12, 2010 5:21 PM > To: NT System Admin Issues > Subject: RE: Powershell Question > > >so if you search for "be35a053-2fee-4aa8-aa92-6bd1b2cf5e29" > >you want to put $JobOutput = 787bdf7a-ccff-11dd-9866-806e6f6e6963 > >or $JobOutput = D > > Neat function in previous email, but I am still not seeing how I do what I > need. > > $JobOutput will contain many blocks all of that format, as an example, I used > drives D and E but I refer to by the guid's. > > This is why I used the -b from grep, while I am parsing through all of this, > when I finally hit the drive I am looking for, I can look up three lines and > snag > the corresponding snapshot id. > > I guess I have to first find the line number, then go back and re-read it > looking at that (number-3). > > Is that the only way? > Thanks, > jlc > > ~ Finally, powerful endpoint security that ISN'T a resource hog! ~ ~ > <http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/> ~ > ~ Finally, powerful endpoint security that ISN'T a resource hog! ~ ~ <http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/> ~
