Skip to main content

Notifications

Community site session details

Community site session details

Session Id : W9b2imCuoHk0wEXpiAB6lS
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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Warren Belz – Community Spotlight

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

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Power Automate - Building Flows

#1
stampcoin Profile Picture

stampcoin 87

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 70 Super User 2025 Season 1

#3
David_MA Profile Picture

David_MA 48 Super User 2025 Season 1

Overall leaderboard
Loading started