Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Power Automate Desktop
Answered

Logging in to Microsoft in an Unattended Bot

Like (0) ShareShare
ReportReport
Posted on 27 Mar 2025 20:57:32 by 20
I am running an unattended bot where I must be logged out of the VM. However, I am interacting with Project and need to log into Microsoft, what is the best way to do that?
Categories:
  • Verified answer
    Pstork1 Profile Picture
    65,631 Most Valuable Professional on 28 Mar 2025 at 14:00:32
    Logging in to Microsoft in an Unattended Bot
    When you add the action to run the unattended desktop flow from a cloud flow you have to create a connection. When creating the connection you specify the credentials that will be used to connect to the remote machine.

    ----------------------------------------------------------------------------------
    If this Post helped you, please click "Does this answer your question" and give it a like to help others in the community find the answer too!

    Paul Papanek Stork, MVP
    Blog: https://www.dontpapanic.com/blog
     
  • CU01101358-0 Profile Picture
    20 on 28 Mar 2025 at 13:03:43
    Logging in to Microsoft in an Unattended Bot
    @Pstork1 I am using the Microsoft Hosted VM and so did not set anything up myself, how would I pass it credentials to log in as me then?
  • Pstork1 Profile Picture
    65,631 Most Valuable Professional on 27 Mar 2025 at 21:29:01
    Logging in to Microsoft in an Unattended Bot
    An unattended bot logs into the remote VM with whatever credentials it was given when the bot was created.  If you use your connection account when setting up the bot that is the user it should login as. But you are correct, when running unattended the bot needs you to be logged out so it can login.  But it can login as you.

    ----------------------------------------------------------------------------------
    If this Post helped you, please click "Does this answer your question" and give it a like to help others in the community find the answer too!

    Paul Papanek Stork, MVP
    Blog: https://www.dontpapanic.com/blog
     

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,513 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,631 Most Valuable Professional

Leaderboard
Loading started