Results 1 to 1 of 1
-
02-04-2019 02:11 AM #1
- Join Date
- Nov 2018
- Reputation
- 17
- Posts
- 8
no difference between charging and not-charging in the CIM instances
my laptop (gl504gm) has the ability to stop charging when it arrives at a given percentage (example 60%) thanks to the ASUS's app battery healt charging. Unfortunately this is not always working and i am writing a small powershell script to overcome it
the problem is that i can't recognize when the laptop is charging and when it is connected to the AC source but not charging
the output from the code below is absolutely the same
Code:Get-CimInstance -Class "Win32_Battery"
Any of you have any idee of what i can try to recognize the two states?