At the office we used another laptop to test the battery in (lucky that we have many same models.)

There are many reasons for no charging but the most common is a non-maker charger to failed chargers and of course failed motherboards.

I rarely encounter the Windows issue because windows isn't running when the machine is off/shutdown and in that condition the battery should charge unless there is a broke part.