1
Open Device Manager (accessible by right clicking your Start Button).
Expand the Batteries section
For each device in that section:
Right click and choose Disable
Wait a second or two, then right click and choose Enable
Close Device Manager
Restart (not shut down) your laptop.
Then check if the battery is charging correctly.
2
If not, start your laptop and on the HP logo screen, repeatedly press the Esc key.
Press F2 or Fn + F2 on the resulting window.
That should open the HP PC Hardware Diagnostics menu.
Select Component Tests in the main menu and from there, you should be able to test the health of your battery, what does that test indicate for the health of your battery.