Stephon98caffe
Programmer
My job would like me to parse a file that contains a list of computer names in the following format:
"CN=DUB13520163-L,OU=Computers,OU=ORM,DC=dva,DC=va,DC=gov"
"CN=co0828-01,OU=VHACO Laptops,OU=VHA,DC=dva,DC=va,DC=gov"
I was wondering if anyone knew a better logic of parsing this information. All I need is the CN and the 2nd OU which tells what organization the computer is in. There are about 6 different OU's and I would like to have excel spread sheet for each OU.
Thanks for your help
"CN=DUB13520163-L,OU=Computers,OU=ORM,DC=dva,DC=va,DC=gov"
"CN=co0828-01,OU=VHACO Laptops,OU=VHA,DC=dva,DC=va,DC=gov"
I was wondering if anyone knew a better logic of parsing this information. All I need is the CN and the 2nd OU which tells what organization the computer is in. There are about 6 different OU's and I would like to have excel spread sheet for each OU.
Thanks for your help