?
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
Medium Priority
?
273 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 1500 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

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.
There are times when we need to generate a report on the inbox rules, where users have set up forwarding externally in their mailbox. In this article, I will be sharing a script I wrote to generate the report in CSV format.
Learn the basics of modules and packages in Python. Every Python file is a module, ending in the suffix: .py: Modules are a collection of functions and variables.: Packages are a collection of modules.: Module functions and variables are accessed us…
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…
Suggested Courses

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