Skip to main content

Notifications

Community site session details

Community site session details

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

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 - Power Automate Desktop

#1
eetuRobo Profile Picture

eetuRobo 98 Super User 2025 Season 1

#2
Nived_Nambiar Profile Picture

Nived_Nambiar 20 Super User 2025 Season 1

#2
CU12050101-0 Profile Picture

CU12050101-0 20

Overall leaderboard