The following code will retrieve the latest chkdsk log from the Windows 10 event viewer. I would also like to add whatever code is necessary to also retrieve the date of the event.
Thanks for your reply.
While this script does retrieve the time stamp from the event viewer, it no longer shows the details of the log. Was it implied that this cannot be achieved with one line of script?