web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Detect charging and di...
Power Automate
Unanswered

Detect charging and discharging

(0) ShareShare
ReportReport
Posted on by

Is it possible to automate the task of changing the power settings on my laptop.

The idea is when I disconnect my charger then the laptop should be set to Balanced Mode and while connecting it should switch to the High Performance mode.

I have the same question (0)
  • Nived_Nambiar Profile Picture
    18,129 Super User 2025 Season 2 on at

    Hi @pdeepak4556 

     

    To know state of charging use powershell script to know state of charging 

     

    Nived_Nambiar_0-1686597709248.png

     

     

    powershell script 

    Get-WmiObject -Class Win32_Battery | Select-Object -Property BatteryStatus

     

    based on output value, you can decide the state of charge and enable balance mode and high performance mode.

     

    for enabling balanced or high performance, you can try with power shell script or ui automation 🙂

     

    Let me know if you have any doubts 

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 503 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 321 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard