Hi,
I am wanting to read a text file located on a NAS device \hg-nas01\Logs\Test\Test.txt
The file has times and dates of Windows Updates and i would like to get a few items from it this file is always being written to it be below is a example
----WINDOWS UPDATES----- @ 31/07/2023 11:03:58 AM
Beginning our update search. Please note, this may take a few minutes.
Windows update search has successfully completed. Beginning iteration of result set...
-----Windows Updates----- @ 31/07/2023 11:04:19 AM
Total Updates:- 2
Important:- 1
Optional :- 1
--------Total Time: 20.92 Sec----------------
Iteration of Windows Update Search Results has successfully completed.
-------------------------
i would like to get the Total Updates, Important and Optional but the will have several versions of this string.
Can anyone assist in giving some examples the way to tackle this the logfile is written to every hour.