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 / Silent join machine gr...
Power Automate
Unanswered

Silent join machine group fails

(0) ShareShare
ReportReport
Posted on by 2

I am trying to register a machine each day and have it join a machine group using PAD.MachineRegistration.Silent.exe it will work a few times on the day the group is created but then fails. Registration of the machine works every time the issue is only with joining the machine group

The command I am trying is 

 

$machineGroupPassword | .\PAD.MachineRegistration.Silent.exe -joinmachinegroup -groupid $machineGroupId -grouppassword -tenantid $tenantid -environmentid $environmentId

 

I get an error  

AuthenticationFailed
Failed to acquire token silently. You can retry with a fallback mechanism. See -help above.
Error code: parsing_wstrust_response_failed. Error message: There was an error parsing WS-Trust response from the endpoint.

 

  • fraenK Profile Picture
    2,125 on at

    Did you follow this? How do you handle the secure input?

    Grouppassword: the password of your machine. If this is the first machine of the group, you need to define it. If not, you need to provide the defined password of the group. This input isn’t expected to be specified as an input of the command line. See “Secure input” section to see options you can choose to provide it

    https://docs.microsoft.com/en-us/power-automate/desktop-flows/machines-silent-registration#join-silently-a-machine-group

     

  • rkumar311 Profile Picture
    2 on at

    @mgreen1066 Did you get any solution to this issue ? I am facing same during PA Silent Registration.

  • JimiBest Profile Picture
    12 on at

    Looks like you need to authenticate somehow... how did you register the machine? Did you use Service Principal/Azure App authentication or certificate based machine authentication?

  • mgreen1066 Profile Picture
    2 on at

    I did manage to get this sorted by running the below script. only issue is the group has a limit of 50 machines. So some manual interaction is needed when that limit is reached

     

    Start-Transcript "$env:temp\powerautomatereg.txt"

    $environmentId = ""
    $machineGroupId = ""
    $machineGroupPassword = ""
    $tenantid = ""
    $applicationid = ""
    $password = ""
    #line break is required! these two bits needs tobe concated together
    $machinesecrets = "$machineGroupPassword
    $password"

    Set-Location "C:\Program Files (x86)\Power Automate Desktop"
    $password | .\PAD.MachineRegistration.Silent.exe -register -force -applicationid $applicationid -clientsecret -tenantid $tenantid -environmentid $environmentId

     

    $machinesecrets | .\PAD.MachineRegistration.Silent.exe -joinmachinegroup -groupid $machineGroupId -grouppassword -applicationid $applicationid -clientsecret -tenantid $tenantid -environmentid $environmentId

     

    stop-transcript

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
11manish Profile Picture

11manish 227 Super User 2026 Season 2

#2
David_MA Profile Picture

David_MA 213 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 151

Last 30 days Overall leaderboard