troubleshooting Question

Poweshell Script to schedule

Avatar of A D
A DFlag for United Kingdom of Great Britain and Northern Ireland asked on
Powershell
4 Comments1 Solution44 ViewsLast Modified:
I have a folder named Error Log with thousands of txt files being logged by a third party application. Its difficult to find a specific error from those files and proactively fix related issues timely.

Can you help me with a powershell script which can search specific words from within those files in Error Log folder (e.g. '.' is missing or schema mismatch) and copy only those specific files to other folder named Status Errors?

I can then check Status Errors folder every evening and fix any errors so as to avoid any issues start of next day?
ASKER CERTIFIED SOLUTION
Join our community to see this answer!
Unlock 1 Answer and 4 Comments.
Start Free Trial
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 4 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