Summary: Use Windows PowerShell to show the percentage of remaining battery time.
How can I use Windows PowerShell to show the percentage of remaining battery time on my laptop or on my Windows Surface?
Use the Get-WmiObject cmdlet and query the Win32_Battery WMI class:
(Get-WmiObject win32_battery).estimatedChargeRemaining
0 comments