Question: Is there a way to automatically save all output logs from a deployment to a specified folder to quickly search for a word or phrase and flag those targets?
I have a deployment that is scanning for Windows component store corruption. It's a simple Powershell line:
Dism /Online /Cleanup-Image /ScanHealth
I am looking for a way to search all Output logs for the word "repairable". I use Effective File Scan which can search within file content and return a list of file names. At the moment, I quickly opened each log file through PDQ Deploy then closed it - this pulled a copy of the output log into the temp folder on the PDQ server through which I can then search:
I know that the GZ files are saved here:
C:\ProgramData\Admin Arsenal\PDQ Deploy\Deployment Output
If I extract the files, they don't identify the target within the file name which prevents this from being an efficient approach.
Thanks very much in advance!
Please sign in to leave a comment.