


Once I have this, I can assign labels to sanitized and extracted information (as above).

However, I don't know how to then take these groups (lines of strings) and organize them in an array where each line is an element in the array. Automatically restore a golden configuration file to the managed device when. The resultant text is now in groups by interface (there is some junk in there, but it is minimal and manageable). $matchedGroups = $text | Select-String $regex -AllMatches | ForEach-Object I can then process the imported text to group interfaces together like this: $regex = '(?ms)interface(.+?)!' I can import the config file with the following code: $importPath = I'm attempting to create a script to process multiple cisco configs and port them to Excel via CSV with the following fields: Interface Name, Description, VLAN and Voice VLAN.
