Skip to main content

Notifications

Community site session details

Community site session details

Session Id : whBSgFwI+ZtYvaMAn2o+fK
Power Automate - Building Flows
Answered

Stop laptop battery charge and sleep flow

Like (0) ShareShare
ReportReport
Posted on 22 Nov 2021 22:48:03 by

Hi, I want to achieve 2 things using Power Automate, if possible:

 

1) Create an alarm or, if possible, stop charging the battery once it reaches a threshold of say, 70%  (and be able to notify or start charging after you hit 30%).

 

2) Create a button to make the laptop go to sleep, instead of just locking up the screen using Windows + L button. 

 

Thanks. 

  • Verified answer
    v-bofeng-msft Profile Picture
    on 25 Nov 2021 at 02:20:34
    Re: Stop laptop battery charge and sleep flow

    Hi @LEOMODE :

    Q1:Create an alarm or, if possible, stop charging the battery once it reaches a threshold of say, 70%  (and be able to notify or start charging after you hit 30%).

    Hi, I am afraid that flow can not meet these requirements. But ,some brands of laptop computers may provide power management settings, I suggest you can search the Internet or seek the services of the laptop manufacturer.

    Q2:Create a button to make the laptop go to sleep, instead of just locking up the screen using Windows + L button. 

    Please try:

    vbofengmsft_0-1637806711495.png

    vbofengmsft_1-1637806757998.png

    C:\Windows\System32\rundll32.exe powrprof.dll,SetSuspendState Hibemate

    vbofengmsft_2-1637806788660.png

    vbofengmsft_4-1637806827387.png

     

    Best Regards,

    Bof

     

     

     

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

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Leaderboard > Power Automate - Building Flows

#1
David_MA Profile Picture

David_MA 349 Super User 2025 Season 1

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 290 Super User 2025 Season 1

#3
stampcoin Profile Picture

stampcoin 270

Overall leaderboard
Loading started