Two years is a long time for a computer to sit on a shelf before being sold. That might not be what happened, of course, but this is one explanation. When the system is not purchased and registered, the original warranty "date" sticks - eventually the warranty time period expires.
Regardless of how this came about, this is something you fix for you computer using the Warrant Dispute process. The link and information are included later in this message.
Part of the process requires that you provide purchase information - this helps get the warranty reset to when the computer was purchased.
Device Home Page - References and Resources –Learn about your Device - Solve Problems
NOTE: Content depends on device type and Operating System
Categories: Alerts, Warranty Check, HP Drivers / Software and BIOS, How-to Videos, Bulletins/Notices, How-to Documents, Troubleshooting, User Guides / Manuals, Service and Maintenance Guide (Replacement Parts / Procedures), Product Information (Specifications)...
When the website support page opens, Select (as available) aCategory>Topic >Subtopic