Skip to main content

Notifications

Community site session details

Community site session details

Session Id : oE8/+94RaK6ixLlPkpo3tQ
Power Automate - Power Automate Desktop
Answered

Run PowerShell Script - Timeout

Like (0) ShareShare
ReportReport
Posted on 25 Oct 2023 11:30:39 by 11

Hi community,

 

Do you know any details about this feature?

BernardoNS_0-1698233242490.png


I'm using a PowerShell command to run a Python script. Our concern is that, somehow, the Python script blocks somewhere and the PowerShell action doesn't finish. We are running PAD in Unattended mode, therefore we need to make sure that the desktop flow execution is cancelled/timed-out after X hours.

 

Any ideas?

 

Thanks

 



  • BernardoNS Profile Picture
    11 on 25 Oct 2023 at 11:41:18
    Re: Run PowerShell Script - Timeout

    OMG I went directly to the advanced settings and somehow missed that toggle 😅

     

    Thanks @Agnius 

  • Verified answer
    Agnius Bartninkas Profile Picture
    10,045 Most Valuable Professional on 25 Oct 2023 at 11:33:22
    Re: Run PowerShell Script - Timeout

    In order for the script to time out, you need to enable the "Fail after timeout" toggle:

    Agnius_0-1698233574269.png

     

    And then set the timeout value in seconds in the field that appears after you enable it.

    -------------------------------------------------------------------------
    If I have answered your question, please mark it as the preferred solution. If you like my response, please give it a Thumbs Up.

    I also provide paid consultancy and development services using Power Automate. If you're interested, DM me and we can discuss it.

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

#1
WarrenBelz Profile Picture

WarrenBelz 146,745 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,091 Most Valuable Professional

Leaderboard
Loading started