It’s been way to long since I’ve posted anything on this blog, so I figured it was time to do something about that.
I’ve previously shared some scripts on this blog on how to gather warranty information for Lenovo systems. Since both of those script where based on parsing through the web page displaying Lenovo’s warranty information for a system, they stopped working every time Lenovo changed the layout of the page.
So before giving another shot at this I spent some time searching for a better solution in the community. I found this post Get Lenovo Warranty Information with PowerShell by Nickolaj Andersen over at SCConfigMgr, but this solution was also parsing through the web page of Lenovo’s warranty information and I didn’t want to go down that road again. After some more research I stumbled over this posting over at the Lenovo forum.
So I decided to give it a shot and came up with the script below;