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
223 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

Question has a verified solution.

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

Suggested Solutions

A brief introduction to what I consider to be the best editor for PowerShell.
Previously, on our Nano Server Deployment series, we've created a new nano server image and deployed it on a physical server in part 2. Now we will go through configuration.
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

739 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