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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Reuse Session not working
Power Automate
Unanswered

Reuse Session not working

(1) ShareShare
ReportReport
Posted on by 222

Hi.

 

So I recently dabbled a bit with the Reuse Session machine setting, but I can't seem to get it to work.

The setting is enabled, and I am able to start a flow. The computer logs in and I can see a session is created.

 

The Unattended flow runs fine and finishes correctly.

When I then initiate the second Unattended flow, it fails on the first UI Dependent action, as if the Session is not active.

 

In my test I first run a flow that logs into a website and leaves the site open.

This runs as expected (See picture)

 

Gematria_0-1652367398338.png

 

 

The 2nd flow takes a screenshot of the desktop - and this fails with error:

Problem while executing action 'TakeScreenshotAndSaveToFile'. Failed to take screenshot.

Gematria_1-1652367421687.png

 

Verified that the flow works in normal circumstances, so it's not an error in the flow, and the first non-User dependent actions works fine. (Get Environment variable and get datetime)

 

I can do a remote session to the Server after the failure and I can see that the website from the first flow is still displaying correctly as logged in.

 

Looking at the Sessions in PS, I can see the first Session being created and called rdp-tcp#0

But once the second flow is run, the Session changes name briefly to rdp-tcp#1 and shortly thereafter, the Sessionname goes blank (When the 2nd flow fails)

 

Gematria_2-1652367522092.png

 

Attempts at running subsequent flows after this also fails as soon as a User dependent action is reached (See picture)

 

Gematria_3-1652367737770.png

 

Does anyone have any experience with the Reuse Session setting and can maybe shed some light on what might be wrong?

 

For reference, we are running Unattended flows on a Server environment.

I suspect that MFA might be the contributing factor to why the flow fails, as we are usually approving each Unattended flow using Duo Authentication. Our hope was the Reuse Session would be able to get around the Duo requirements for each Unattended flow.

I have the same question (0)
  • EktaKadam Profile Picture
    9 on at

    If you could explain what is basically the reuse session for unattended runs is? And what should be the machine mode while make this work out?

  • Highboy Profile Picture
    1,187 Super User 2024 Season 1 on at
  • devflows Profile Picture
    2 on at

    @Gematria  hello did you find a solution? I'm afraid that I might be in the same trouble. 😞

  • Gematria Profile Picture
    222 on at

    Unfortunately not, no 😞

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 298 Super User 2026 Season 2

#2
trice602 Profile Picture

trice602 159 Super User 2026 Season 2

#3
11manish Profile Picture

11manish 150 Super User 2026 Season 2

Last 30 days Overall leaderboard