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

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

This script checks a path to see if a folder exists. If the folder does exist you will get output "The folder has previously been created. No action taken" If not it will create the folder. Then adds one user modify permission to the folder. It …
I thought I'd write this up for anyone who has a request to create an anonymous whistle-blower-type submission form created using SharePoint 2010 (this would probably work the same for 2013). It's not 100% fool-proof but it's as close as you can get…
Learn the basics of while and for loops in Python.  while loops are used for testing while, or until, a condition is met: The structure of a while loop is as follows:     while <condition>:         do something         repeate: The break statement m…
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…

758 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

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now