Gentlemen,
New to the list so please be gentle. Need to achieve the following and have
been banging my head against the wall:
- In the process of deploying a full-disk encryption product that requires
checkdisk to run prior to installation. If any bad sectors are found, I need
to run check disk again and try to fix them. Unfortunately, check disk has no
logging mechanism other then Event Viewer: upon completion Event ID 1001 with
source of Winlogon is logged in Application log. Inside, it will have a
string that looks like this:
0 KB in bad sectors
This is the string I need to search for INSIDE the Event ID 1001 and if it's
not 0 KB, I need to stop installation and run another check disk on reboot. I
have figured out a way how to do all of the above with the exception of
searcing INSIDE events in Event Viewer.
If anyone has an idea or a pointer, I'd be forever greatful.
Thanks in advance!