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
239 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

More Than Just A Video Library

Train for your certification. Learn the latest DevOps tools. Grow your skillset to do better work.

At Linux Academy, we release new training modules every week so you'll always be up to date on the latest tech.

Question has a verified solution.

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

A recent project that involved parsing Tableau Desktop and Server log files to extract reusable user queries for use in other systems. I chose to use PowerShell to gather the data, and SharePoint to present it...
Recently we ran in to an issue while running some SQL jobs where we were trying to process the cubes.  We got an error saying failure stating 'NT SERVICE\SQLSERVERAGENT does not have access to Analysis Services. So this is a way to automate that wit…
Learn the basics of strings in Python: declaration, operations, indices, and slicing. Strings are declared with quotations; for example: s = "string": Strings are immutable.: Strings may be concatenated or multiplied using the addition and multiplic…
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…

717 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