Why is my Laptop is showing error plugged in not charging?

Why is my Laptop showing error plugged in not charging?

Plugged in, not charging

1.    If your laptop refuses to charge the battery even though it acknowledges that it's plugged in, here's what you need to do:
2.   Open the Device Manager by searching for it or right-clicking the Start button and selecting Device Manager.
3.   Click Batteries on the list to expand it and you should see two items: Microsoft AC Adapter and Microsoft ACPI-Compliant Control Method Battery.
4.   Right-click on each item and choose Uninstall device. Yes, you are uninstalling your laptop's battery drivers, but don't worry because they will automatically be reinstalled when you restart your laptop.
5.   Shut down your laptop.
6.   Unplug the power cable from your laptop.
7.    If your laptop has a removable battery, remove it. My laptop does not have a removable battery. I tried skipping this step but it didn't work, so I removed the bottom panel of my laptop and then removed the battery by disconnecting it from the motherboard.
8.   Put the battery back in if you removed it.
9.   Plug in your laptop.
10. Power on your laptop.
11.  Click the battery icon in the system tray and you should see that your laptop is plugged in and charging.