I am looking for a way to limit my battery charge to 60% in Windows 11 on my AMD 13. I would love to use a bat file or PowerShell. I know this can be done from the BIOS, but being done from the OS would be awesome. If this has been answered before, I am really sorry (I searched and could only find an answer for linux).
I would also like this feature. My laptop usually lives on the desk, so I keep it plugged in and lower the charge limit. However, before traveling, I increase the charge limit. I would prefer not having to reboot the system to go into BIOS, and just being able to raise the charge limit from the OS.
There is an article on Exploring the Embedded Controller that @DHowett developed that talks about interfacing with the embedded controller that could change the battery charge state. There is a ton of reading and so many things that can be done; it may be a little overwhelming.
It might be possible to install Hyper-V or VirtualBox and a Linux flavor and then interface with the EC. This may be more effort than it is worth though and booting to the BIOS to change the charge level is the easier solution until a dedicated tool exists to adjust these settings native to Windows.