I'm trying to get full charge capacity of remote notebook battery info in our company, but it returns empty output when I run the code. I did some googling and I know I need to ask the driver of the battery for the info (can be found in registry too I think), but I have weak programming skills and have no idea how to do it. I am also doing DesignCapacity instead of FullChargeCapacity at the end of the code, and this one works. Can anyone help me? Thank you
My code:
$NTB_Battery_ActualCapacity = $(Get-WmiObject win32_portablebattery -Computername $remote_PC).FullChargeCapacity
Here's an attempt with powercfg.