Solved

In powershell, how can I look inside a zip file for text in an xml that matches something from a list of strings in another text file.

Posted on 2015-02-12
2
185 Views
Last Modified: 2015-04-15
In powershell, how can I look inside a zip file for text in an xml that matches something from a list of strings in another text file.

I have a text file with a list of id's and I have to look through a bunch of zip files which have xml files in them for strings that match the id's on the list.  I would like to use powershell to traverse through the zip files with xml in them and look for the first few characters of the matching strings.
Let me know how i can do this.
thanks,
0
Comment
Question by:josephh610
2 Comments
 
LVL 4

Accepted Solution

by:
Rich Leclair earned 500 total points
ID: 40608789
You will need a way to get the items out of the zip file. This script might help

https://gallery.technet.microsoft.com/scriptcenter/PowerShell-Get-Specific-9b35352f
0

Featured Post

Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Synchronize a new Active Directory domain with an existing Office 365 tenant
A brief introduction to what I consider to be the best editor for PowerShell.
The viewer will learn how to count occurrences of each item in an array.
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question