Is it possible to show the battery level of an RDP client inside the host?

8

1

I have a Windows 10 Pro VM that I often connect to from a Windows 10 laptop. I connect using vanilla Microsoft Remote Desktop Client. Because I full-screen the remote session so often, I sometimes don't notice my battery level draining.

Is it possible to show the battery level of my laptop inside the virtual machine I connect to?

Peter Berbec

Posted 2017-09-23T01:40:16.283

Reputation: 158

1Maybe: WMIC Path Win32_Battery Get BatteryStatus – Pimp Juice IT – 2017-09-23T01:51:44.137

See here too just in case: https://superuser.com/questions/333329/windows-xp-vista-7-check-battery-charge-from-cmd

– Pimp Juice IT – 2017-09-23T02:05:01.220

I'm trying to see the laptop's battery gauge inside the VM I rdp to. – Peter Berbec – 2017-09-23T02:24:07.557

@Facebook Excellent approach, but you may want to add a /NODE:"systemName" switch to the right spot. – TOOGAM – 2017-09-23T03:12:31.273

Answers

8

I didn't find anything that would do this, either, so I started a new project on GitHub to create a Microsoft RDP client add-in for battery reporting.

Check the releases page for Windows binaries, if you prefer not to compile from the source, and follow the instructions for installation.

transistor1

Posted 2017-09-23T01:40:16.283

Reputation: 336

1This is great! I will be running this immediately! – Peter Berbec – 2018-03-02T17:21:23.987

I don't have much rep. but this is so awesome it is well worth it. – Peter Berbec – 2018-03-05T14:05:07.680

2

Disclaimer: I haven't used Windows in a long time, so I haven't tested this. That said, it should work.

  • Install 8gadgetpack to enable support to "Windows gadgets".

    (Needed for Windows versions higher than 7)

  • Install the "Battery Meter" gadget.

  • Activate the gadget, right-click and set it to "always on top".

That Brazilian Guy

Posted 2017-09-23T01:40:16.283

Reputation: 5 880

This would do the job, but I was hoping for something that would integrate into the Windows power meter. – Peter Berbec – 2017-09-23T02:59:04.610

1If the virtual machine is in another computer you need to use a solution like this, there is no way you can do it with the Windows power meter (because that would need built a networked solution just for this, which is a very corner case). – Alberto Martinez – 2017-09-23T09:59:06.987

I was afraid of this. The WMIC commands above look hopeful. I just had the linux-centric dream there would be someway to hack it together. – Peter Berbec – 2017-09-24T04:20:27.953