troubleshooting Question

Filter Huge Text File Based on Search String through Powershell

Avatar of Techop09
Techop09 asked on
3 Comments1 Solution920 ViewsLast Modified:

I have a HUGE text file (over 10 GB) that has an export of ACLs from over 600,000 folders.  I'm looking to use Powershell to filter this huge file based on a search string, in this case, the search string would be a certain domain user.  What I want Powershell to do is find the search string in the original file and output it every instance of it  along with the immediate 10 lines above where it was found a new text file.  I hope this makes sense.  Thanks.
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 3 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 3 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros