# Get Updated data From Powercfg Battery Report

**URL:** <https://discuss.elastic.co/t/get-updated-data-from-powercfg-battery-report/94081>\
**Category:** Beats\
**Created:** [July 21, 2017, 9:02am UTC](https://discuss.elastic.co/t/get-updated-data-from-powercfg-battery-report/94081 "2017-07-21T09:02:12Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![jogoinar10](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jogoinar10/32/20068_2.png) [@jogoinar10](https://discuss.elastic.co/u/jogoinar10)\
**Post date:** [July 21, 2017, 9:02am UTC](https://discuss.elastic.co/t/get-updated-data-from-powercfg-battery-report/94081/1 "2017-07-21T09:02:13Z")

</div>

Is there anyone here who tried to get the logs of powercfg /batteryreport?

---

<div class="post-metadata">

**Author:** ![andrewkroh](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/andrewkroh/32/3784_2.png) [@andrewkroh](https://discuss.elastic.co/u/andrewkroh)\
**Post date:** [July 21, 2017, 2:54pm UTC](https://discuss.elastic.co/t/get-updated-data-from-powercfg-battery-report/94081/2 "2017-07-21T14:54:32Z")

</div>

This is the first time I've seen the request. What information does this provide? Do you know if there is any API in Windows for this? I see [Win32\_PortableBattery](https://msdn.microsoft.com/en-us/library/aa394357(VS.85).aspx) can be queried through WMI. Is that the same info?

---

<div class="post-metadata">

**Author:** ![jogoinar10](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jogoinar10/32/20068_2.png) [@jogoinar10](https://discuss.elastic.co/u/jogoinar10)\
**Post date:** [July 24, 2017, 9:22am UTC](https://discuss.elastic.co/t/get-updated-data-from-powercfg-battery-report/94081/3 "2017-07-24T09:22:37Z")

</div>

That's what I'm also looking for, if there's api for this. I think Win32\_PortableBattery is different from powercfg.

Can you please try to check this one. \<[Powercfg](https://technet.microsoft.com/en-us/library/cc748940(v=ws.10).aspx)\> . It's a tool that gathers data and output it to html file.

Maybe it's off topic from beats. Sorry.

---

<div class="post-metadata">

**Author:** ![andrewkroh](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/andrewkroh/32/3784_2.png) [@andrewkroh](https://discuss.elastic.co/u/andrewkroh)\
**Post date:** [July 24, 2017, 2:14pm UTC](https://discuss.elastic.co/t/get-updated-data-from-powercfg-battery-report/94081/4 "2017-07-24T14:14:04Z")

</div>

Found a similar question on the technet forums:

[https://msdn.microsoft.com/en-us/library/windows/desktop/aa373163(v=vs.85).aspx](https://msdn.microsoft.com/en-us/library/windows/desktop/aa373163(v=vs.85).aspx)

[https://social.technet.microsoft.com/Forums/en-US/0c3d7995-5daa-44a5-af4c-1bbad31fdbb4/what-api-does-powercfg-use?forum=win10itprogeneral](https://social.technet.microsoft.com/Forums/en-US/0c3d7995-5daa-44a5-af4c-1bbad31fdbb4/what-api-does-powercfg-use?forum=win10itprogeneral)

---

<div class="post-metadata">

**Author:** ![jogoinar10](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jogoinar10/32/20068_2.png) [@jogoinar10](https://discuss.elastic.co/u/jogoinar10)\
**Post date:** [July 25, 2017, 4:51am UTC](https://discuss.elastic.co/t/get-updated-data-from-powercfg-battery-report/94081/5 "2017-07-25T04:51:24Z")

</div>

Thank you very much @andrewkroh. Gonna check this one. 🙂

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [August 11, 2017, 9:12am UTC](https://discuss.elastic.co/t/get-updated-data-from-powercfg-battery-report/94081/6 "2017-08-11T09:12:23Z")

</div>

This topic was automatically closed after 21 days. New replies are no longer allowed.
