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 / Power Automate and Act...
Power Automate
Unanswered

Power Automate and Active Directory

(0) ShareShare
ReportReport
Posted on by 2

Anyone know if I can use the active directory action in power automate desktop to change users account options?

 

Specifically, the “User must change password at next logon” & “Password never expires”.

 

Looking to automate those flags in AD.

 

Thanks!

I have the same question (0)
  • tipsyjman Profile Picture
    2 on at

    Okay....I've instead just created PowerShell scripts to flag those user account options. Now, do I simply just do a "Run PowerShell script" action and paste my code in? How do I run it as a different user? How do I add this desktop flow to my power automate flow?


    Thanks!

  • Agnius Bartninkas Profile Picture
    Most Valuable Professional on at

    Yes, you can paste the script to a Run PowerShell script action. Byt you cannot run a PowerShell script from PAD as a different user.

     

    If you have a desktop flow and want to call it from the cloud, you need a Premium license, and you need to set up your Power Automate machine runtime app to register the machine to an environment. You can then create a cloud flow that runs a desktop flow via the Desktop Flows connector.

     

    See here for reference: https://learn.microsoft.com/en-us/power-automate/desktop-flows/trigger-desktop-flows

    -------------------------------------------------------------------------

    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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 573

#2
Valantis Profile Picture

Valantis 407

#3
11manish Profile Picture

11manish 387

Last 30 days Overall leaderboard