This should be one of the first things you try when encountering almost any problem with your laptop (or any device, really), as restarting can fix a lot of issues such as a battery not detected ...
This should be the first and the foremost step in fixing the issue of No battery is detected on a Windows laptop. The power adapter may be either loose or not working. Check if the laptop is ...