A powershell Noob,
I'm trying to parse a webpage to pull the expiration date of the equipment.
Process so far:
Powershell Script goes out and Queries each machine on the network and gets the following: Serial Number, Model, User
copies the information to a comma separated text file
queries lenovo website to get the warranty expiration date
I'm trying to use the HTML temp file to parse the expiration date. All I want is the expiration date from the file, but because the literal expression is "<td valign="top" width="120">2015-10-20</td
><td valign="top" width="4">" with the expiration date being "2015-10-20" I'm unable to get that information.
I can't do a query for the exact match because as mentioned it's several machines. Once I can complete the query I can output the data to a text file, I just can't figure out how to format the query.
The temp HTML file is attached.
Thanks in advance