I am in need of some help here. I think I have a concept, but am not sure how to accomplish it.
I need to write a script to lookup some information in AD. I can handle that part fine. The part I need help with si that i need it to lookup computernames that have a certain range of barcodes in the name. I know the format and how to query AD for it, but I need help on the way I can have it dom some sort of "for each next" so that I can start with a barcode and do its thing, then go to the next barcode and try. I am assuming that I may need to use an array or some type of loop, but I am not sure how I could use a loop here since I am not dealing with a collection of items. I thought that an array could be that collection, but my array skills are very limited.
Any help is appreciated.
I need to write a script to lookup some information in AD. I can handle that part fine. The part I need help with si that i need it to lookup computernames that have a certain range of barcodes in the name. I know the format and how to query AD for it, but I need help on the way I can have it dom some sort of "for each next" so that I can start with a barcode and do its thing, then go to the next barcode and try. I am assuming that I may need to use an array or some type of loop, but I am not sure how I could use a loop here since I am not dealing with a collection of items. I thought that an array could be that collection, but my array skills are very limited.
Any help is appreciated.