Good Day PeteSwett,
My name is Carlo, I am also using Windows 10 pc and community member like you. Let us work together to sort this out.
Hopefully the battery is not yet dead, Here's the steps you can try.
-Press Windows key + X
-Go to Settings
-Click Update and Security
-Click Troubleshooter then Additional troubleshooter.
-Look for Power run the troubleshooter.
-Press Windows key + X
-Go to Device Manager
-Expand the Battery
-Look for Microsoft ACPI Control Method battery driver that was installed
-Right click and Uninstall
After restart the driver will be automatically installed.
-Click Start type CMD and run as administrator
-Copy and paste the command below and hit Enter
powercfg -restoredefaultschemes
Once you entered that command restart and try to charge your computer.
Have a wonderful day ahead and stay safe.
Sincerely,
Carlo T.